refactor: use class helper instead of component to handle responsiveness

This commit is contained in:
2024-08-22 18:18:21 +02:00
parent 7996f40d7f
commit 5cdc2495d2
6 changed files with 77 additions and 87 deletions

View File

@@ -2,3 +2,5 @@ import { type ClassNameValue, twMerge } from "tailwind-merge";
import { clsx } from "clsx";
export const cn = (...classes: Array<ClassNameValue>) => twMerge(clsx(classes));
export const hideIf = (condition: boolean) => (condition ? "hidden" : "");