import { Link } from 'react-router-dom';
interface TextURLProps {
text: string
tooltip?: string
href?: string
onClick?: () => void
}
function TextURL({ text, href, tooltip, onClick }: TextURLProps) {
if (href) {
return (
{text}
);
} else if (onClick) {
return (
{text}
);
} else {
return null;
}
}
export default TextURL;