import React, { CSSProperties } from 'react'; interface IZoomOutProps { onClick: () => void; className?: string; style?: CSSProperties; disabled?: boolean; } export default function ZoomOut(props: IZoomOutProps) { const { onClick, className, disabled = false } = props; const style = { cursor: disabled ? 'default' : 'pointer', stroke: disabled ? 'grey' : 'yellow', fill: disabled ? 'grey' : 'yellow', ...props.style }; return ( ); }