generated from autoblog/Seo
15 lines
348 B
TypeScript
15 lines
348 B
TypeScript
|
|
import { clsx, type ClassValue } from 'clsx';
|
||
|
|
import { twMerge } from 'tailwind-merge';
|
||
|
|
|
||
|
|
export function cn(...inputs: ClassValue[]) {
|
||
|
|
return twMerge(clsx(inputs));
|
||
|
|
}
|
||
|
|
|
||
|
|
export function formatDate(date: string) {
|
||
|
|
return new Intl.DateTimeFormat('pt-BR', {
|
||
|
|
day: 'numeric',
|
||
|
|
month: 'long',
|
||
|
|
year: 'numeric',
|
||
|
|
}).format(new Date(date));
|
||
|
|
}
|