1
0
Fork 0
freesewing/sites/shared/components/workbench/layout/cut/index.mjs

16 lines
450 B
JavaScript
Raw Normal View History

2022-02-20 18:46:21 +01:00
import { useTranslation } from 'next-i18next'
2023-02-05 19:58:25 +01:00
import { CutLayoutSettings } from './settings.mjs'
2022-02-20 18:46:21 +01:00
export const CutLayout = (props) => {
2022-02-20 18:46:21 +01:00
const { t } = useTranslation(['workbench'])
let name = props.design.designConfig.data.name
name = name.replace('@freesewing/', '')
2022-02-20 18:46:21 +01:00
return (
<div>
<h2 className="capitalize">{t('layoutThing', { thing: name }) + ': ' + t('forCutting')}</h2>
2023-02-05 19:58:25 +01:00
<CutLayoutSettings {...props} />
2022-02-20 18:46:21 +01:00
</div>
)
}