/** @format */ import Typography from "@mui/material/Typography"; import { useNavigate } from "react-router-dom"; import "./textLink.module.scss"; const TextLink = ({ children, location, variant, otherProps }) => { const navigate = useNavigate(); return ( navigate(location)} {...otherProps} > {children} ); }; export default TextLink;