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

17 lines
285 B
TypeScript
Raw Normal View History

2023-07-15 17:46:19 +03:00
import { Link } from 'react-router-dom';
interface TextURLProps {
text: string
href: string
}
2023-07-25 20:27:29 +03:00
function TextURL({ text, href }: TextURLProps) {
2023-07-15 17:46:19 +03:00
return (
2023-08-16 18:56:48 +03:00
<Link className='font-bold hover:underline clr-text' to={href}>
2023-07-15 17:46:19 +03:00
{text}
</Link>
);
}
2023-07-25 20:27:29 +03:00
export default TextURL;