export const truncate = (text: string, length: number): string => { return text.length > length - 3 ? `${text.slice(0, length - 3)}...` : text; };