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

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

  return (
    <Grid
      container
      gap={SPACING.SMALL}
      p={SPACING.SMALL}
      direction={{ xs: "column", md: "row" }}
    >
      <NavLink
        to={ROUTE_PROVINCE_PRICING}
        active={pathname === ROUTE_PROVINCE_PRICING ? "true" : null}
      >
        <Button variant="text" color="inherit">
          تعیین و قیمت گذاری نهاده
        </Button>
      </NavLink>
    </Grid>
  );
};
