import React, { ReactNode, useRef } from 'react'; interface IconButtonProps { children: ReactNode; onClick: () => void; className: string; } const IconButton: React.FC = ({ children, onClick, className }) => { const buttonRef = useRef(null); function handleClick() { if (buttonRef.current != null) { buttonRef.current.blur(); } if (typeof onClick === 'function') { onClick(); } } return ( ); }; export default IconButton;