This repository has been archived on 2024-06-14. You can view files and clone it, but cannot push or open issues or pull requests.
icynet-admin/lib/utils/conditional-class.ts

7 lines
154 B
TypeScript
Raw Permalink Normal View History

2022-08-29 18:09:28 +00:00
export default function conditionalClass(
condition: boolean,
className: string
): string | undefined {
return condition ? className : undefined;
}