import { Link } from 'react-router-dom';
interface TextURLProps {
text: string
title?: string
href?: string
color?: string
onClick?: () => void
}
function TextURL({ text, href, title, color='clr-text-url', onClick }: TextURLProps) {
const design = `cursor-pointer hover:underline ${color}`;
if (href) {
return (
{text}
);
} else if (onClick) {
return (
{text}
);
} else {
return null;
}
}
export default TextURL;