import { Fragment } from 'react' import { useTranslation } from 'next-i18next' import { SubAccordion } from 'shared/components/accordion.mjs' import { WarningIcon, ResetIcon, LeftRightIcon, BoolYesIcon, BoolNoIcon, } from 'shared/components/icons.mjs' import { ListInput } from 'shared/components/inputs.mjs' import { horFlexClasses } from 'shared/utils.mjs' export const ns = ['workbench', 'print'] export const PrintActions = ({ update, ui }) => { // get translation for the menu const { t } = useTranslation(ns) const resetLayout = () => update.ui(['layouts', 'print']) return ( <>
{t('workbench:partTransfo')}
{ui.hideMovableButtons ? : } , update.ui('hideMovableButtons', ui.hideMovableButtons ? false : true)} label={ {t('workbench:partTransfoDesc')} } list={[ { val: true, label: t('workbench:partTransfoNo'), desc: t('workbench:partTransfoNoDesc'), }, { val: false, label: t('workbench:partTransfoYes'), desc: t('workbench:partTransfoYesDesc'), }, ]} current={ui.hideMovableButtons ? true : false} />, ], [
{t('workbench:resetPrintLayout')}
,

{t('workbench:resetPrintLayoutDesc')}

, ], ]} /> ) }