import React from 'react'; import { Intent, Tag, Menu, MenuItem, MenuDivider, ProgressBar, } from '@blueprintjs/core'; import intl from 'react-intl-universal'; import clsx from 'classnames'; import { CLASSES } from '../../../common/classes'; import { safeCallback } from 'utils'; import { FormatDateCell, FormattedMessage as T, AppToaster, Choose, If, Icon, Can, } from 'components'; export function ActionsMenu({ payload: { onEdit, onDelete, onViewDetails, onPrint }, row: { original }, }) { return (
); } /** * Retrieve warehouse transfer table columns. */ export function useWarehouseTransfersTableColumns() { return React.useMemo( () => [ { id: 'date', Header: intl.get('date'), accessor: 'date', Cell: FormatDateCell, width: 120, className: 'date', clickable: true, textOverview: true, }, { id: 'transfer_no', Header: intl.get('warehouse_transfer.column.transfer_no'), accessor: 'transfer_no', width: 120, className: 'transfer_no', clickable: true, textOverview: true, }, { id: 'from_warehouse', Header: intl.get('warehouse_transfer.column.from_warehouse'), accessor: 'from_warehouse', width: 150, clickable: true, textOverview: true, }, { id: 'to_warehouse', Header: intl.get('warehouse_transfer.column.to_warehouse'), accessor: 'to_warehouse', width: 150, clickable: true, textOverview: true, }, { id: 'reason', Header: intl.get('reason'), accessor: 'reason', className: 'reason', width: 120, clickable: true, textOverview: true, }, { id: 'status', Header: intl.get('status'), // accessor: (row) => statusAccessor(row), width: 160, className: 'status', clickable: true, }, { id: 'created_at', Header: intl.get('created_at'), accessor: 'created_at', Cell: FormatDateCell, width: 120, clickable: true, }, ], [], ); }