export function truncate(value: string, maxLength = 10): string { return value.length > maxLength ? `${value.slice(0, maxLength)}...` : value; }