Files
stock-manager/src/lib/utils.ts
T
2025-11-12 15:30:12 +01:00

15 lines
335 B
TypeScript

import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function formatDate(date: Date) {
return new Intl.DateTimeFormat("es-ES", {
year: "numeric",
month: "2-digit",
day: "2-digit",
}).format(date)
}