import { Box, Tooltip } from '@chakra-ui/react'; import { Text } from '@mantine/core'; import { forwardRef, memo } from 'react'; interface ItemProps extends React.ComponentPropsWithoutRef<'div'> { label: string; description?: string; tooltip?: string; disabled?: boolean; } const IAIMantineSelectItemWithTooltip = forwardRef( ({ label, tooltip, description, disabled, ...others }: ItemProps, ref) => ( {label} {description && ( {description} )} ) ); IAIMantineSelectItemWithTooltip.displayName = 'IAIMantineSelectItemWithTooltip'; export default memo(IAIMantineSelectItemWithTooltip);