import { cx } from '@fuel-ui/css'; import type { ReactNode } from 'react'; import { createComponent } from '../../utils'; import type { ButtonProps } from '../Button'; import { Button } from '../Button'; import type { IconProps } from '../Icon'; import { Tooltip } from '../Tooltip'; type OmitProps = 'leftIcon' | 'rightIcon' | 'justIcon'; export type IconButtonProps = Omit & { 'aria-label': string; size?: ButtonProps['size']; icon: IconProps['icon']; tooltip?: ReactNode; }; export const IconButton = createComponent( ({ icon, tooltip, className, ...props }) => { const classes = cx('fuel_IconButton', className); const content = (