import FlyRow from "./FlyRow"; import type { FlyInstanceData } from "./useFlyLayout"; import type { StatusSnapshot } from "./useStatusSnapshot"; interface FlyListProps { flies: FlyInstanceData[]; selectedFlyId: string | null; statusSnapshot: StatusSnapshot; onSelectFly: (id: string | null) => void; } export default function FlyList({ flies, selectedFlyId, statusSnapshot, onSelectFly }: FlyListProps) { return (
{flies.map((fly) => { const isSelected = fly.id === selectedFlyId; return ( onSelectFly(isSelected ? null : fly.id)} /> ); })}
); }