import { useEffect, useState } from "react"; import { clsx, type ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); } export const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? ""; export function useHasMounted() { const [hasMounted, setHasMounted] = useState(false); useEffect(() => { setHasMounted(true); }, []); return hasMounted; }