import { FC } from "react"; import { Card, ModuleBase } from "../../components"; import { RichTextModuleProps } from "./RichTextModule.types"; import { richText } from "./RichTextModule.styles"; import { hasHTMLTags } from "../../utils"; const RichTextModule: FC = ({ data, moduleAnims, imageSizes, ...props }) => { let richTextContent = { ...data }; if (data?.content && !hasHTMLTags(data?.content)) { richTextContent.content = `

${data?.content}

`; } return ( ); }; export default RichTextModule;