import { Tooltip as MuiTooltip, type TooltipProps as MuiTooltipProps } from '@mui/material'; import type { ReactElement, ReactNode } from 'react'; import type { AriaLabelingAttributes } from '../../@types/aria-attributes'; import type { DataTestAttributes } from '../../@types/data-attributes'; export type TooltipProps = { children: ReactElement; followCursor?: boolean; hasCaret?: boolean; isOpen?: boolean; label: ReactNode; position?: | 'top' | 'bottom' | 'left' | 'right' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start'; } & AriaLabelingAttributes & DataTestAttributes & Omit; const Tooltip = ({ children, label, position = 'bottom', followCursor = true, isOpen, hasCaret = false, ...attr }: TooltipProps): ReactElement => { return ( {children} ); }; export { Tooltip };