// reactstrap components
import { useKhovtTransPhieuXuatControllerFind } from 'main/apis/drc/endpoints/khovt-trans-phieu-xuat-controller/khovt-trans-phieu-xuat-controller';
import BasicTemplate from 'main/components/templates/basic-template';
import { Page } from 'main/constants';
import moment, { Moment } from 'moment';
import {
  Card,
  CardFooter,
  CardBody,
  CardHeader,
  Container,
  DropdownItem,
  DropdownMenu,
  DropdownToggle,
  Pagination,
  PaginationItem,
  PaginationLink,
  Row,
  Table,
  UncontrolledDropdown,
} from 'reactstrap';
import SuppliesStoreManagerfilter from './manager-warehouse-supplies-filter/manager-warehouse-supplies-filter';
import SuppliesStoreManagerTable from './manager-warehouse-supplies-table/manager-warehouse-supplies-table';

export type ExportFilter = {
  startDate?: Moment;
  endDate?: Moment;
  exportStore: string;
  importStore: string;
  exportBillNo: string;
  exportStatus: string;
};

enum FieldName {
  START_DATE = 'startDate',
  END_DATE = 'endDate',
  EXPORT_STORE = 'exportStore',
  IMPORT_STORE = 'importStore',
  EXPORT_BILL_NO = 'exportBillNo',
  EXPORT_STATUS = 'exportStatus',
}
// React Query
//  const { data: suppliesExportBills, isLoading: suppliesExportBillsIsLoading } = useKhovtTransPhieuXuatControllerFind(
//   getSuppliesExportBillsParams(filter, table),
// );

function ManagerWarehouseSuppliesList() {
  return (
    <BasicTemplate
      pageTitle={Page.MANAGER_WAREHOUSE_SUPPLIES_lIST.TITLE}
      pageName={Page.MANAGER_WAREHOUSE_SUPPLIES_lIST.NAME}>
      <Container className="mt--6" fluid>
        <Row>
          <div className="col">
            <Card>
              <CardHeader>
                <h3>QUẢN LÝ NHẬP KHO VẬT TƯ</h3>
              </CardHeader>
              <CardBody>
                <SuppliesStoreManagerfilter />
                {/* <SuppliesStoreManagerTable data={suppliesExportBills}/> */}
              </CardBody>
            </Card>
          </div>
        </Row>
      </Container>
    </BasicTemplate>
  );
}

export default ManagerWarehouseSuppliesList;
