MCPcopy Index your code
hub / github.com/resend/react-email / getTextAlignment

Function getTextAlignment

packages/editor/src/utils/get-text-alignment.ts:1–12  ·  view source on GitHub ↗
(alignment: string | undefined)

Source from the content-addressed store, hash-verified

1export 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}

Callers 5

blockquote.tsxFile · 0.90
renderToReactEmailFunction · 0.90
heading.tsxFile · 0.90
paragraph.tsxFile · 0.90
list-item.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected