import Link from 'next/link' const Tooltip = ({ href, size='small', children, direction='center', text }:TooltipProps):JSX.Element => { 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