squiggle/packages/website/src/components/SquigglePlayground.jsx

14 lines
348 B
React
Raw Normal View History

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