import { VscNewFolder } from "react-icons/vsc";
import { useLocation } from "react-router-dom";
import { Grid } from "../../../components/grid/Grid";
import LinkItem from "../../../components/link-item/LinkItem";
import { NavLink } from "../../../components/nav-link/NavLink";
import { SPACING } from "../../../data/spacing";
import {
  ROUTE_SENF_INVENTORY_SEGMENTATION,
  ROUTE_SENF_INVENTORY_STOCK,
} from "../../../routes/routes";
import ContentCutIcon from "@mui/icons-material/ContentCut";

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

  return (
    <Grid
      container
      gap={SPACING.SMALL}
      p={SPACING.SMALL}
      direction={{ xs: "column", md: "row" }}
      justifyContent="center"
      style={{ placeContent: "baseline" }}
    >
      <NavLink
        to={ROUTE_SENF_INVENTORY_STOCK}
        active={pathname === ROUTE_SENF_INVENTORY_STOCK ? "true" : null}
      >
        <LinkItem
          icon={<VscNewFolder size={30} color="#244CCC" />}
          title="ورود به انبار"
        />
      </NavLink>
      {/* <NavLink
        to={ROUTE_SENF_INVENTORY_ENTER}
        active={pathname === ROUTE_SENF_INVENTORY_ENTER ? "true" : null}
      >
        <LinkItem
          icon={<WarehouseIcon sx={{ fontSize: 34, color: "#2444CC" }} />}
          title="ورود به انبار"
        />
      </NavLink> */}
      <NavLink
        to={ROUTE_SENF_INVENTORY_SEGMENTATION}
        active={pathname === ROUTE_SENF_INVENTORY_SEGMENTATION ? "true" : null}
      >
        <LinkItem
          icon={<ContentCutIcon sx={{ fontSize: 30, color: "#2444CC" }} />}
          title="قطعه بندی"
        />
      </NavLink>
    </Grid>
  );
};
