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

16 lines
363 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
}
function TextURL({text, href}: TextURLProps) {
return (
<Link className='text-sm font-bold text-blue-400 dark:text-orange-600 dark:hover:text-orange-400 hover:underline hover:text-blue-600' to={href}>
{text}
</Link>
);
}
export default TextURL;