squiggle/packages/website/src/components/SquiggleEditor.jsx
2022-03-25 14:12:14 +11:00

14 lines
340 B
JavaScript

import BrowserOnly from '@docusaurus/BrowserOnly';
export function SquiggleEditor(props) {
return (
<BrowserOnly fallback={<div>Loading...</div>}>
{() => {
const LibComponent =
require('@quri/squiggle-components').SquiggleEditor;
return <LibComponent {...props} />;
}}
</BrowserOnly>
);
}