1 2
export const abbreviate = (title: string, maxLength: number) => title.length > maxLength ? `${title.slice(0, maxLength)}...` : title;