|  |  | 
 |  |  |                 const fields = data.map(el => <TextField key={el.fields} source={`extendFields.[${el.fields}]`} label={el.fieldsAlise} />) | 
 |  |  |                 const opt = <WrapperField key="opt" cellClassName="fixed" className="fixed" label="common.field.opt"> | 
 |  |  |                     <EditButton sx={{ padding: '1px', fontSize: '.75rem' }} /> | 
 |  |  |                     <EnableButton /> | 
 |  |  |                     <PrintButton /> | 
 |  |  |                 </WrapperField> | 
 |  |  |                 setColumns([...arr, ...fields, opt]); | 
 |  |  |  | 
 |  |  | 
 |  |  |                         <BatchStatusButton /> | 
 |  |  |                         <BatchLevelButton /> | 
 |  |  |                         <BindButton /> | 
 |  |  |                         <PrintButton /> | 
 |  |  |                         <BatchPrintButton /> | 
 |  |  |                         <BulkDeleteButton mutationMode={OPERATE_MODE} /> | 
 |  |  |                     </>} | 
 |  |  |                     rowClick={(id, resource, record) => false} | 
 |  |  | 
 |  |  |     ) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | const PrintButton = () => { | 
 |  |  | const BatchPrintButton = () => { | 
 |  |  |     const record = useRecordContext(); | 
 |  |  |     const { resource, selectedIds } = useListContext(); | 
 |  |  |     const notify = useNotify(); | 
 |  |  | 
 |  |  |     ) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | const PrintButton = () => { | 
 |  |  |     const record = useRecordContext(); | 
 |  |  |  | 
 |  |  |     const notify = useNotify(); | 
 |  |  |     const refresh = useRefresh(); | 
 |  |  |  | 
 |  |  |     const [createDialog, setCreateDialog] = useState(false); | 
 |  |  |  | 
 |  |  |     return ( | 
 |  |  |         <> | 
 |  |  |             <Button color="secondary" onClick={() => setCreateDialog(true)} label={"toolbar.print"}> | 
 |  |  |                 <PrintIcon /> | 
 |  |  |             </Button> | 
 |  |  |  | 
 |  |  |             <PrintModal | 
 |  |  |                 open={createDialog} | 
 |  |  |                 setOpen={setCreateDialog} | 
 |  |  |                 rows={[record.id]} | 
 |  |  |             /> | 
 |  |  |         </> | 
 |  |  |     ) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | const BindButton = () => { | 
 |  |  |     const record = useRecordContext(); | 
 |  |  |     const notify = useNotify(); |