cutting layout renders at the most basic level
This commit is contained in:
parent
150b9f49d2
commit
6dbe15a862
7 changed files with 76 additions and 7 deletions
|
@ -1,7 +1,27 @@
|
|||
export const CutLayoutSettings = () => {
|
||||
import { ClearIcon } from 'shared/components/icons.mjs'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
|
||||
export const CutLayoutSettings = (props) => {
|
||||
const { t } = useTranslation(['workbench'])
|
||||
let fabric = props.draft?.setStores[0].get('fabric')
|
||||
if (!fabric) return null
|
||||
const { cols, rows, count } = fabric
|
||||
|
||||
return (
|
||||
<div>
|
||||
<p>Fixme: Cut layout settings here</p>
|
||||
<div
|
||||
className="flex flex-row justify-between
|
||||
mb-2"
|
||||
>
|
||||
<button
|
||||
key="reset"
|
||||
onClick={() => props.unsetGist(['layouts', 'cuttingLayout'])}
|
||||
className="btn btn-primary btn-outline"
|
||||
>
|
||||
<ClearIcon className="h-6 w-6 mr-2" />
|
||||
{t('reset')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue