FetalCLIP / frontend /src /lib /utils.ts
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(' ');
}