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

export default function ManagePositionPage() {
  return (
    <>
      <Helmet>
        <title>TPAY | Manage Position</title>
      </Helmet>
      <ManagePositionContextProvider>
        <Container>
          <h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Positions</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">Settings</span>
            </Link>

            <Link underline="none" color="inherit">
              <span className="text-sm">User Management</span>
            </Link>

            <Link underline="none" color="inherit">
              <span className="text-sm">Manage Position</span>
            </Link>
          </Breadcrumbs>
          <div className="grid gap-5 lg:gap-7.5">
            <DataGridInner />
          </div>
          <EditDialog />
          <AddDialog />
          <DeleteDialog />
        </Container>
      </ManagePositionContextProvider>
    </>
  );
}
