import type { RcTooltipProps } from '@ringcentral/juno'; import { RcTooltip } from '@ringcentral/juno'; import type { FunctionComponent } from 'react'; import React from 'react'; import styles from './styles.scss'; export type TooltipProps = Omit; export const Tooltip: FunctionComponent = ({ children, title, ...rest }) => { if (!title) return children; return ( {title}} {...rest} > {children} ); };