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