
Refer to the CHANGELOG for all info. --------- Co-authored-by: Wouter van Wageningen <wouter.vdub@yahoo.com> Co-authored-by: Josh Munic <jpmunic@gmail.com> Co-authored-by: Jonathan Haas <haasjona@gmail.com>
15 lines
465 B
JavaScript
15 lines
465 B
JavaScript
import React from 'react'
|
|
import { getProps } from './utils.mjs'
|
|
|
|
export const Stack = ({ stackName, stack, settings, components, strings }) => {
|
|
const { Group, Part, Grid } = components
|
|
|
|
return (
|
|
<Group {...getProps(stack)}>
|
|
{settings[0].paperless ? <Grid {...{ stack, stackName }} /> : null}
|
|
{[...stack.parts].map((part, key) => (
|
|
<Part {...{ settings, components, part, stackName, strings }} key={key} />
|
|
))}
|
|
</Group>
|
|
)
|
|
}
|