import { Grid } from "../../../../components/grid/Grid";
import { SPACING } from "../../../../data/spacing";
import { NavLink } from "../../../../components/nav-link/NavLink";
import { useLocation } from "react-router-dom";
import { Button } from "@mui/material";
import { ROUTE_SLAUGHTER_CAR_MANAGEMENT } from "../../../../routes/routes";

export const SlaughterOperations = () => {
  const { pathname } = useLocation();

  return (
    <Grid
      container
      gap={SPACING.SMALL}
      p={SPACING.SMALL}
      direction={{ xs: "column", md: "row" }}
    >
      {/* <NavLink
        to={ROUTE_SLAUGHTER_ADD_CAR}
        active={pathname === ROUTE_SLAUGHTER_ADD_CAR ? "true" : null}
      >
        <Button variant="text" color="inherit">
          ثبت خودرو جدید
        </Button>
      </NavLink> */}
      <NavLink
        to={ROUTE_SLAUGHTER_CAR_MANAGEMENT}
        active={pathname === ROUTE_SLAUGHTER_CAR_MANAGEMENT ? "true" : null}
      >
        <Button variant="text" color="inherit">
          مدیریت خودروها
        </Button>
      </NavLink>
    </Grid>
  );
};
