import { useEffect, useMemo } from "react";
import { DisplayH2, DisplayH3 } from "./utils";
export function Prose({ section }: { section: any }) {
const { id } = section;
const html = useMemo(() => ({ __html: section.content }), [section.content]);
useEffect(() => {
if (html.__html.includes(";
}
const DisplayHx = section.isH3 ? DisplayH3 : DisplayH2;
return (
);
}