MdView.tsx 325 B

12345678910111213
  1. import { TCodeConvertor, XmlToReact } from "./utilities";
  2. interface IWidget {
  3. html: string;
  4. wordWidget?: boolean;
  5. convertor?: TCodeConvertor;
  6. }
  7. const Widget = ({ html, wordWidget = false, convertor }: IWidget) => {
  8. const jsx = XmlToReact(html, wordWidget, convertor);
  9. return <>{jsx}</>;
  10. };
  11. export default Widget;