import { MouseEventHandler } from "react"; export const IconButton: React.FC<{ className: string; onClick: () => void; disabled?: boolean; color?: string; }> = ({ className, onClick, disabled, color }) => { const onClickStopPropagation: MouseEventHandler = (e) => { e.stopPropagation(); if (disabled) { return; } onClick(); }; return ( ); };