import Typography from "@mui/material/Typography"; import Stack from "@mui/material/Stack"; import Link from "@mui/material/Link"; import PropTypes from "prop-types"; import { useTheme } from "@emotion/react"; import { Link as RouterLink } from "react-router-dom"; const TextLink = ({ text, linkText, href, target = "_self" }) => { const theme = useTheme(); return ( {text} {linkText} ); }; TextLink.propTypes = { text: PropTypes.string, linkText: PropTypes.string, href: PropTypes.string, target: PropTypes.string, }; export default TextLink;