2022-02-20 18:46:21 +01:00
|
|
|
import { useTranslation } from 'next-i18next'
|
|
|
|
import Settings from './settings'
|
|
|
|
|
|
|
|
const CutLayout = props => {
|
|
|
|
const { t } = useTranslation(['workbench'])
|
|
|
|
|
2022-09-25 10:45:52 +02:00
|
|
|
let name = props.design.designConfig.data.name
|
2022-09-01 23:06:37 -07:00
|
|
|
name = name.replace('@freesewing/', '')
|
2022-02-20 18:46:21 +01:00
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<h2 className="capitalize">
|
|
|
|
{
|
2022-09-01 23:06:37 -07:00
|
|
|
t('layoutThing', { thing: name })
|
2022-02-20 18:46:21 +01:00
|
|
|
+ ': '
|
|
|
|
+ t('forCutting')
|
|
|
|
}
|
|
|
|
</h2>
|
|
|
|
<Settings {...props} />
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CutLayout
|