Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | interface ToolButtonProps { label: string icon: React.ReactNode active: boolean onClick: () => void size?: number } export function ToolButton({ label, icon, active, onClick, size = 48 }: ToolButtonProps) { return ( <button data-action={`tool-${label.toLowerCase()}`} onClick={onClick} title={label} style={{ width: size, height: size, borderRadius: 12, border: active ? '2px solid #4E79A7' : '1px solid rgba(203, 213, 225, 0.8)', background: active ? 'rgba(78, 121, 167, 0.1)' : 'rgba(255, 255, 255, 0.9)', backdropFilter: 'blur(8px)', color: active ? '#4E79A7' : '#64748b', display: 'flex', alignItems: 'center', justifyContent: 'center', cursor: 'pointer', boxShadow: '0 2px 8px rgba(0,0,0,0.1)', transition: 'all 0.15s ease', }} > {icon} </button> ) } |