import { Card, Grid } from "@mui/material";
import { useParams } from "react-router-dom";
import HeaderBreadcrumbs from "../../../components/HeaderBreadcrumbs";
import Page from "../../../components/Page";
import useSettings from "../../../hooks/useSettings";
import CorporateTabNavigations from "../CorporateTabNavigations";
import DivisionsList from "./List";



export default function Divisions() {
  const { themeStretch } = useSettings();

  const { corporate_id } = useParams();

  return (
    <Page title="Corporate Plan">

      <HeaderBreadcrumbs
        heading={'Corporate Plan'}
        links={[
          {
            name: 'Corporates',
            href: '/corporates',
          },
          {
            name: 'Corporate Name',
            href: '/corporates/'+corporate_id,
          },
          {
            name: 'Plan',
            href: '/corporates/'+corporate_id+'/plans',
          },
        ]}
      />

      <Card>
        <CorporateTabNavigations position={'plans'} />
        <DivisionsList />
      </Card>
      
    </Page>
  );
}
