export const capitalizeFirstLetter = (text: string): string => { return text.charAt(0).toUpperCase() + text.slice(1); }; export const capitalizeAll = (text: string): string => { return text .split(" ") .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) .join(" "); };