mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
17 lines
285 B
TypeScript
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;
|