import React from 'react';
import { Link } from 'react-router-dom';
interface CustomLinkProps {
to: string;
text: string;
}
const CustomLink: React.FC<CustomLinkProps> = ({ to, text }) => {
return <Link to={to} className='hover:text-primary px-4'>{text}</Link>;
};
export default CustomLink;