wip(lab): Work on porting lab/workbenck to named exports
This commit is contained in:
parent
db789180b6
commit
59708f534d
85 changed files with 1339 additions and 1149 deletions
19
sites/shared/components/workbench/draft/stack.mjs
Normal file
19
sites/shared/components/workbench/draft/stack.mjs
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { Part } from './part.mjs'
|
||||
import { getProps } from './utils.mjs'
|
||||
|
||||
export const Stack = (props) => {
|
||||
const { stack, gist, updateGist, unsetGist, showInfo } = props
|
||||
|
||||
return (
|
||||
<g {...getProps(stack)}>
|
||||
{[...stack.parts].map((part) => (
|
||||
<Part
|
||||
{...{ gist, updateGist, unsetGist, showInfo }}
|
||||
key={part.name}
|
||||
partName={part.name}
|
||||
part={part}
|
||||
/>
|
||||
))}
|
||||
</g>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue