1
0
Fork 0

wip(shared): Re-factoring workbench

This commit is contained in:
joostdecock 2023-05-11 19:14:48 +02:00
parent 0dece4d70e
commit 517fa3f5e3
57 changed files with 1033 additions and 1382 deletions

View 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>
)
}