(props: {
text: string | undefined;
className?: string;
})
| 6 | import { MessageProps } from './props'; |
| 7 | |
| 8 | const EmbedText = async (props: { |
| 9 | text: string | undefined; |
| 10 | className?: string; |
| 11 | }) => { |
| 12 | if (!props.text) return null; |
| 13 | const textToHTML = await parse(props.text); |
| 14 | |
| 15 | return ( |
| 16 | <div className={cn(`font-light text-primary`, props.className)}> |
| 17 | {textToHTML} |
| 18 | </div> |
| 19 | ); |
| 20 | }; |
| 21 | |
| 22 | const EmbedField = ( |
| 23 | props: NonNullable<EmbedProps['embed']['fields']>[number], |