(value: string)
| 6 | : undefined |
| 7 | |
| 8 | function first(value: string) { |
| 9 | if (!value) return "" |
| 10 | if (!segmenter) return Array.from(value)[0] ?? "" |
| 11 | return segmenter.segment(value)[Symbol.iterator]().next().value?.segment ?? Array.from(value)[0] ?? "" |
| 12 | } |
| 13 | |
| 14 | export interface AvatarProps extends ComponentProps<"div"> { |
| 15 | fallback: string |
no test coverage detected