13 lines
352 B
TypeScript
13 lines
352 B
TypeScript
import { clsx, type ClassValue } from "clsx"
|
|
import { twMerge } from "tailwind-merge"
|
|
|
|
export function cn(...inputs: ClassValue[]): string {
|
|
return twMerge(clsx(inputs))
|
|
}
|
|
|
|
export const getGreeting = () => {
|
|
const hour = new Date().getHours()
|
|
if (hour < 12) return "Good morning"
|
|
if (hour < 18) return "Good afternoon"
|
|
return "Good evening"
|
|
} |