A free and open-source block-based email template builder.
TypeScript amazonsesdeveloper-toolsemailemail-editoremail-marketingemail-templateemail-template-builderemailapiemailjshtml-email-editorno-codenocode-email-editoropen-source-email-buildersendgridtransactional-emailswysiwyg-email-editorwysiwyg-html-editor
import React, { useMemo } from 'react';
import { renderToStaticMarkup } from '@usewaypoint/email-builder';
import { useDocument } from '../../documents/editor/EditorContext';
import HighlightedCodePanel from './helper/HighlightedCodePanel';
export default function HtmlPanel() {
const document = useDocument();
const code = useMemo(() => renderToStaticMarkup(document, { rootBlockId: 'root' }), [document]);
return <HighlightedCodePanel type="html" value={code} />;
}