import React, { forwardRef } from 'react'; import { useThemeProps } from '../../../hooks'; import Button, { IButtonProps } from '../../primitives/Button'; export type IIconButtonProps = IButtonProps & { icon: JSX.Element; }; const IconButton = ({ icon, ...props }: IIconButtonProps, ref: any) => { const newProps = useThemeProps('IconButton', props); return ( ); }; export default React.memo(forwardRef(IconButton));