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_STOCK } from "../../../routes/routes";

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>
    </Grid>
  );
};
