2022-04-10 23:15:46 +00:00
|
|
|
import BrowserOnly from "@docusaurus/BrowserOnly";
|
2022-03-25 03:12:14 +00:00
|
|
|
|
|
|
|
export function SquiggleEditor(props) {
|
|
|
|
return (
|
|
|
|
<BrowserOnly fallback={<div>Loading...</div>}>
|
|
|
|
{() => {
|
|
|
|
const LibComponent =
|
2022-04-10 23:15:46 +00:00
|
|
|
require("@quri/squiggle-components").SquiggleEditor;
|
2022-03-25 03:12:14 +00:00
|
|
|
return <LibComponent {...props} />;
|
|
|
|
}}
|
|
|
|
</BrowserOnly>
|
|
|
|
);
|
|
|
|
}
|