import { CssProps, RefProps } from 'lupine.web'; import { DemoStory } from '../../demo/demo-types'; import { PEditor } from './p-editor'; import { PEditorOptions } from './p-editor-types'; export const PEditorDemoPage = (props: { args: PEditorOptions }) => { let editor: PEditor | undefined; const ref: RefProps = { onLoad: async () => { const container = ref.$('.pe-demo-box'); editor = new PEditor(container, props.args); }, }; const css: CssProps = { display: 'flex', flexDirection: 'column', height: 'calc(100vh - 100px)', padding: '0', boxSizing: 'border-box', '.pe-demo-box': { width: '100%', height: '100%', }, }; return (