({ mode, onClose }: { mode: OrderEntryMode; onClose: () => void })
| 75 | // ==================== Header ==================== |
| 76 | |
| 77 | function Header({ mode, onClose }: { mode: OrderEntryMode; onClose: () => void }) { |
| 78 | const title = mode.kind === 'place' ? 'Place Order' : 'Close Position' |
| 79 | return ( |
| 80 | <div className="shrink-0 px-6 py-4 border-b border-border flex items-center justify-between"> |
| 81 | <h3 className="text-[14px] font-semibold text-text">{title}</h3> |
| 82 | <button onClick={onClose} className="text-text-muted hover:text-text p-1 transition-colors"> |
| 83 | <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round"> |
| 84 | <path d="M18 6L6 18M6 6l12 12" /> |
| 85 | </svg> |
| 86 | </button> |
| 87 | </div> |
| 88 | ) |
| 89 | } |
| 90 | |
| 91 | // ==================== Place form ==================== |
| 92 |
nothing calls this directly
no outgoing calls
no test coverage detected