import React from 'react'; // FIX: Module '"react-router-dom"' has no exported member 'Link'. The import is removed. // import { Link as RouterLink } from 'react-router-dom'; import { useStyles } from '../../core/hooks/useStyles'; import { useTheme } from '../../core/theme/ThemeProvider'; interface LinkProps extends React.AnchorHTMLAttributes { to?: string; } export const Link: React.FC = ({ children, className = '', to, ...props }) => { const { theme } = useTheme(); const createStyle = useStyles('link'); const linkClass = createStyle({ color: theme.colors.primary, textDecoration: 'none', transition: 'color 0.2s', '&:hover': { color: '#93c5fd', // Lighter blue textDecoration: 'underline', }, }); const combinedClassName = `${linkClass} ${className}`; if (to) { // FIX: Fallback to a standard anchor tag for the 'to' prop since react-router-dom's Link is unavailable. return ( {children} ); } return ( {children} ); };