2023-06-01 18:28:22 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { getProps } from './utils.mjs'
|
|
|
|
|
|
|
|
export const Stack = ({ stackName, stack, settings, components, t }) => {
|
|
|
|
const { Group, Part } = components
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Group {...getProps(stack)}>
|
2023-06-02 18:21:40 +02:00
|
|
|
{[...stack.parts].map((part, key) => (
|
|
|
|
<Part {...{ settings, components, t, part, stackName, key }} />
|
2023-06-01 18:28:22 +02:00
|
|
|
))}
|
|
|
|
</Group>
|
|
|
|
)
|
|
|
|
}
|