1
0
Fork 0
freesewing/sites/shared/components/workbench/views/draft/index.mjs

39 lines
809 B
JavaScript
Raw Normal View History

2023-05-11 19:14:48 +02:00
import { Pattern } from 'shared/components/workbench/pattern/index.mjs'
import { DraftMenu, ns as menuNs } from './menu.mjs'
2023-05-11 19:14:48 +02:00
export const ns = menuNs
export const DraftView = ({
design,
pattern,
patternConfig,
setView,
settings,
ui,
update,
language,
account,
DynamicDocs,
}) => (
<div className="flex flex-row">
2023-05-18 14:32:29 +02:00
<div className="w-2/3 shrink-0 grow lg:p-4 sticky top-0">
2023-05-11 19:14:48 +02:00
<Pattern {...{ pattern, setView, settings, ui, update }} />
</div>
2023-05-18 14:32:29 +02:00
<div className="w-1/3 shrink grow-0 lg:p-4 max-w-2xl h-screen overflow-scroll">
<DraftMenu
{...{
design,
pattern,
patternConfig,
settings,
ui,
update,
language,
account,
DynamicDocs,
}}
/>
2023-05-11 19:14:48 +02:00
</div>
</div>
)