import React, { CSSProperties } from 'react'; interface ICameraOnProps { onClick: () => void; disabled: boolean; className?: string; style?: CSSProperties; } export default function CameraOn(props: ICameraOnProps) { const { onClick, disabled, className } = props; const style = { cursor: disabled ? 'default' : 'pointer', stroke: disabled ? 'grey' : 'yellow', strokeLineJoin: 'round', strokeLineCap: 'round', strokeWidth: 1.5, ...props.style }; return ( ); }