(alignment: string | undefined)
| 1 | export function getTextAlignment(alignment: string | undefined) { |
| 2 | switch (alignment) { |
| 3 | case 'left': |
| 4 | return { textAlign: 'left' } as const; |
| 5 | case 'center': |
| 6 | return { textAlign: 'center' } as const; |
| 7 | case 'right': |
| 8 | return { textAlign: 'right' } as const; |
| 9 | default: |
| 10 | return {}; |
| 11 | } |
| 12 | } |
no outgoing calls
no test coverage detected