import { Container, DataGridInner } from '@/components';
import {
  ManageTransferTypeContext,
  ManageTransferTypeContextProvider
} from './hooks/ManageTransferTypeContext';
import AddDialog from './blocks/AddDialog';
import { Breadcrumbs, Link } from '@mui/material';
import DeleteDialog from './blocks/DeleteDialog';
import { EditDialog } from './blocks/EditDialog';
import { Helmet } from 'react-helmet';

const TransferType = () => {

  return (
    <>
      <Helmet>
        <title>TPAY | Manage Transaction Type</title>
      </Helmet>
      <ManageTransferTypeContextProvider>
        <Container>
          <h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Transaction Type</h1>
          <Breadcrumbs sx={{ mb: 2 }}>
            <Link underline="none" color="inherit" href="/">
              <span className="text-sm hover:underline">Dashboard</span>
            </Link>

            <Link underline="none" color="inherit">
              <span className="text-sm">Transfer Type</span>
            </Link>

            <Link underline="none" color="inherit">
              <span className="text-sm">Manage Transfer Type</span>
            </Link>
          </Breadcrumbs>
          <div className="grid gap-5 lg:gap-7.5">
            <DataGridInner />
          </div>
          <AddDialog />
          <DeleteDialog />
          <EditDialog />

        </Container>
      </ManageTransferTypeContextProvider>
    </>
  );
};

export default TransferType;
