core/apps/webapp/app/lib/utils.ts
Harshith Mullapudi a25b92e384 fix: UI for document logs
feat: added logs API to delete the episode
2025-09-18 23:21:26 +05:30

15 lines
377 B
TypeScript

import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function formatString(input: string): string {
if (!input) return "";
return input
.split(" ")
.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
.join(" ");
}