23 lines
491 B
JavaScript
23 lines
491 B
JavaScript
import { useTranslation } from 'next-i18next'
|
|
import Settings from './settings'
|
|
|
|
const CutLayout = props => {
|
|
const { t } = useTranslation(['workbench'])
|
|
|
|
let name = props.design.config.data.name
|
|
name = name.replace('@freesewing/', '')
|
|
return (
|
|
<div>
|
|
<h2 className="capitalize">
|
|
{
|
|
t('layoutThing', { thing: name })
|
|
+ ': '
|
|
+ t('forCutting')
|
|
}
|
|
</h2>
|
|
<Settings {...props} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default CutLayout
|