Numan Saeed
Upgrade to React + FastAPI (Docker-based)
a874986
raw
history blame contribute delete
336 Bytes
import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function formatLabel(label: string): string {
return label
.split('_')
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
.join(' ');
}