Files
GSB-Construction/resources/js/lib/utils.ts
Ajjj fa12179ca5
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled
feat: implement permission system via usePermission hook and integrate it into dashboard, project, and financial modules
2026-08-05 05:26:23 +08:00

11 lines
360 B
TypeScript

import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function formatCurrency(value: number | string | null | undefined): string {
return new Intl.NumberFormat('en-PH', { style: 'currency', currency: 'PHP' }).format(Number(value) || 0)
}