Files
2026-07-19 19:37:41 -05:00

16 lines
436 B
TypeScript

import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]): string {
return twMerge(clsx(inputs));
}
export function formatMoney(value: number | null, currency = "COP"): string {
if (value === null) return "Consultar precio";
return new Intl.NumberFormat("es-CO", {
style: "currency",
currency,
maximumFractionDigits: 0,
}).format(value);
}