and AI recommnedation fix
This commit is contained in:
dimitar committed 2025-12-12 01:32:52 +01:00
1 parent 670e6675cc
commit 8353a24f6b
17 files changed
+134 -138

No files matched your search

+11 -3
View File
@@ -1,9 +1,17 @@
export const formatDate = (date: Date): string => {
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export const formatDate = (date: Date | string): string => {
const d = new Date(date)
return new Intl.DateTimeFormat('en-US', {
year: 'numeric',
month: 'short',
month: 'long',
day: 'numeric',
}).format(date)
}).format(d)
}
export const formatCurrency = (