import PageSizePicker from './pagesize-picker' import OrientationPicker from './orientation-picker' import PrintIcon from 'shared/components/icons/print' import RightIcon from 'shared/components/icons/right' import ClearIcon from 'shared/components/icons/clear' import ExportIcon from 'shared/components/icons/export' import { useTranslation } from 'next-i18next' const PrintLayoutSettings = props => { if (!props.draft?.parts?.pages?.pages) return null const { cols, rows, count } = props.draft.parts.pages.pages const { t } = useTranslation(['workbench']) const setMargin = (evt) => { props.updateGist(['_state', 'layout', 'forPrinting', 'page', 'margin'], parseInt(evt.target.value)) } const margin = props.gist._state?.layout?.forPrinting?.page?.margin || 10 return (
{count} | {cols} |
{rows}
) } export default PrintLayoutSettings