interface TooltipProps extends React.ComponentPropsWithRef<'div'> { title: string children: React.ReactNode } export const Tooltip: React.FC = props => { const { title, children, ...rest } = props return ( <> {children} {title} ) }