wip(shared): Re-factoring workbench
This commit is contained in:
parent
0dece4d70e
commit
517fa3f5e3
57 changed files with 1033 additions and 1382 deletions
19
sites/shared/components/workbench/pattern/stack.mjs
Normal file
19
sites/shared/components/workbench/pattern/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