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

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

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