({
selectedWallet,
}: TraderPanelProps)
| 29 | } |
| 30 | |
| 31 | export default function TraderPanel({ |
| 32 | selectedWallet, |
| 33 | }: TraderPanelProps) { |
| 34 | if (!selectedWallet) { |
| 35 | return ( |
| 36 | <TraderPanelContent |
| 37 | key="empty" |
| 38 | selectedWallet={null} |
| 39 | /> |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | return ( |
| 44 | <TraderPanelContent |
| 45 | key={selectedWallet} |
| 46 | selectedWallet={selectedWallet} |
| 47 | /> |
| 48 | ); |
| 49 | } |
| 50 | |
| 51 | function TraderPanelContent({ |
| 52 | selectedWallet, |
nothing calls this directly
no outgoing calls
no test coverage detected