import classnames from 'classnames'; import { forwardRef } from 'preact/compat'; import type { ButtonProps } from './Button'; import { Button } from './Button'; import type { IconProps } from './Icon'; import { Icon } from './Icon'; type Props = IconProps & ButtonProps & { iconClassName?: string; iconSize?: IconProps['size'] }; export const IconButton = forwardRef(function IconButton( { icon, spin, className, iconClassName, size = 'md', iconSize, ...props }: Props, ref, ) { return ( ); });