chore: refactor stacked avatars into component

This commit is contained in:
Ephraim Atta-Duncan
2023-06-25 14:23:18 +00:00
committed by Mythie
parent 208e028226
commit 71c689eae8
4 changed files with 72 additions and 60 deletions

View File

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