import Link from 'next/link' const Tooltip: React.FC = ({ href, size = 'small', children, direction = 'center', text, }) => { return href ? (
{children}
{text} {direction === 'left' ? ( ) : direction === 'center' ? ( ) : ( )}
) : (
{children}
{text} {direction === 'left' ? ( ) : direction === 'center' ? ( ) : ( )}
) } interface TooltipProps { href?: string size?: 'small' | 'large' direction?: 'left' | 'center' | 'right' text: string children: JSX.Element | JSX.Element[] } export default Tooltip