import { FC } from 'react'; import { Text } from 'components/text'; import { Maybe, RichTextContentStringStyle } from 'expo-schema'; import { RichTextContentProps } from './MessageContent.web'; export const MessageContent: FC = ({ richTextContent }) => { const { strings } = richTextContent; const getTextDecoration = (style: Maybe | undefined) => { const isUnderLine = style?.underline ? 'underline' : 'none'; return style?.strikethrough ? 'line-through' : isUnderLine; }; return ( <> {strings.map(({ id, style, value }) => { return ( {value} ); })} ); };