ConceptPortal-public/rsconcept/frontend/src/components/Common/TextURL.tsx

17 lines
285 B
TypeScript

import { Link } from 'react-router-dom';
interface TextURLProps {
text: string
href: string
}
function TextURL({ text, href }: TextURLProps) {
return (
<Link className='font-bold hover:underline text-url' to={href}>
{text}
</Link>
);
}
export default TextURL;