import { ForwardedRef, forwardRef } from "react"; import { IconType } from "react-icons"; interface IconWrapperProps extends React.HTMLAttributes { icon: IconType; className?: string; disabled?: boolean; } const IconWrapper = forwardRef( ( { icon: Icon, className, ...props }: IconWrapperProps, ref: ForwardedRef, ) => (
), ); export default IconWrapper;