{/* Stars Group */}
- {starList.length > 0 && (
+ {groups.star.length > 0 && (
}
- count={starList.length}
- bodies={starList}
+ icon={
}
+ count={groups.star.length}
+ bodies={groups.star}
isExpanded={expandedGroup === 'star'}
onToggle={() => toggleGroup('star')}
selectedBody={selectedBody}
@@ -122,12 +161,12 @@ export function ProbeList({ probes, planets, onBodySelect, selectedBody, onReset
)}
{/* Planets Group */}
- {planetList.length > 0 && (
+ {groups.planet.length > 0 && (
}
- count={planetList.length}
- bodies={planetList}
+ icon={
}
+ count={groups.planet.length}
+ bodies={groups.planet}
isExpanded={expandedGroup === 'planet'}
onToggle={() => toggleGroup('planet')}
selectedBody={selectedBody}
@@ -136,12 +175,12 @@ export function ProbeList({ probes, planets, onBodySelect, selectedBody, onReset
)}
{/* Dwarf Planets Group */}
- {dwarfPlanetList.length > 0 && (
+ {groups.dwarf_planet.length > 0 && (
}
- count={dwarfPlanetList.length}
- bodies={dwarfPlanetList}
+ icon={
}
+ count={groups.dwarf_planet.length}
+ bodies={groups.dwarf_planet}
isExpanded={expandedGroup === 'dwarf_planet'}
onToggle={() => toggleGroup('dwarf_planet')}
selectedBody={selectedBody}
@@ -150,12 +189,12 @@ export function ProbeList({ probes, planets, onBodySelect, selectedBody, onReset
)}
{/* Satellites Group */}
- {satelliteList.length > 0 && (
+ {groups.satellite.length > 0 && (
}
- count={satelliteList.length}
- bodies={satelliteList}
+ icon={
}
+ count={groups.satellite.length}
+ bodies={groups.satellite}
isExpanded={expandedGroup === 'satellite'}
onToggle={() => toggleGroup('satellite')}
selectedBody={selectedBody}
@@ -164,12 +203,12 @@ export function ProbeList({ probes, planets, onBodySelect, selectedBody, onReset
)}
{/* Probes Group */}
- {probeList.length > 0 && (
+ {groups.probe.length > 0 && (
}
- count={probeList.length}
- bodies={probeList}
+ icon={
}
+ count={groups.probe.length}
+ bodies={groups.probe}
isExpanded={expandedGroup === 'probe'}
onToggle={() => toggleGroup('probe')}
selectedBody={selectedBody}
@@ -178,12 +217,12 @@ export function ProbeList({ probes, planets, onBodySelect, selectedBody, onReset
)}
{/* Comets Group */}
- {cometList.length > 0 && (
+ {groups.comet.length > 0 && (
}
- count={cometList.length}
- bodies={cometList}
+ icon={
}
+ count={groups.comet.length}
+ bodies={groups.comet}
isExpanded={expandedGroup === 'comet'}
onToggle={() => toggleGroup('comet')}
selectedBody={selectedBody}
@@ -192,28 +231,13 @@ export function ProbeList({ probes, planets, onBodySelect, selectedBody, onReset
)}
{/* No results message */}
- {processedBodies.length === 0 && (
+ {allBodies.length === 0 && (
未找到匹配的天体
)}