mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 16:19:43 +01:00
- Enhanced ESLint configuration by adding new rules for import consistency and type imports. - Refactored multiple files to replace regular imports with type imports for better clarity and performance. - Ensured consistent use of type imports across the application to align with TypeScript best practices. Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
11 lines
432 B
TypeScript
11 lines
432 B
TypeScript
import { clsx } from "clsx";
|
|
import type { ClassValue } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export const SUPPORT_EMAIL = process.env.NEXT_PUBLIC_SUPPORT_EMAIL || "";
|
|
|
|
export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs));
|
|
|
|
export const resolveGeneralTheme = (resolvedTheme: string | undefined) =>
|
|
resolvedTheme?.includes("light") ? "light" : resolvedTheme?.includes("dark") ? "dark" : "system";
|