MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / Header

Function Header

ui/src/components/uta/OrderEntryDialog.tsx:77–89  ·  view source on GitHub ↗
({ mode, onClose }: { mode: OrderEntryMode; onClose: () => void })

Source from the content-addressed store, hash-verified

75// ==================== Header ====================
76
77function 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected