1
0
Fork 0

wip(lab): Work on porting lab/workbenck to named exports

This commit is contained in:
joostdecock 2023-01-29 18:57:24 +01:00
parent db789180b6
commit 59708f534d
85 changed files with 1339 additions and 1149 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>
)
}