Files
Blink/src/components/textLink/index.jsx
T

23 lines
440 B
React

/** @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 (
<Typography
variant={variant}
className="link"
onClick={() => navigate(location)}
{...otherProps}
>
{children}
</Typography>
);
};
export default TextLink;