14 lines
348 B
JavaScript
14 lines
348 B
JavaScript
import BrowserOnly from "@docusaurus/BrowserOnly";
|
|
|
|
export function SquigglePlayground(props) {
|
|
return (
|
|
<BrowserOnly fallback={<div>Loading...</div>}>
|
|
{() => {
|
|
const LibComponent =
|
|
require("@quri/squiggle-components").SquigglePlayground;
|
|
return <LibComponent {...props} />;
|
|
}}
|
|
</BrowserOnly>
|
|
);
|
|
}
|