Files
sign/packages/lib/client-only/recipient-initials.ts

7 lines
165 B
TypeScript
Raw Normal View History

export const initials = (text: string) =>
text
?.split(' ')
.map((name: string) => name.slice(0, 1).toUpperCase())
.slice(0, 2)
.join('') ?? 'UK';