import { CONNECTION_COLOR, FLY_ICON } from "./FlyRow"; import type { FlyInstanceData } from "./useFlyLayout"; import type { StatusSnapshot } from "./useStatusSnapshot"; interface FlyChipStripProps { flies: FlyInstanceData[]; selectedFlyId: string | null; statusSnapshot: StatusSnapshot; onSelectFly: (id: string | null) => void; } // Compact horizontal chip row for the mobile sheet's always-visible // collapsed handle bar -- a cut-down FlyRow: icon + short id + connection // dot only. Driving/manual text and battery% are dropped here (low-signal // at a glance) but stay visible in the full FlyList once the sheet expands. export default function FlyChipStrip({ flies, selectedFlyId, statusSnapshot, onSelectFly }: FlyChipStripProps) { return (
{flies.map((fly) => { const isSelected = fly.id === selectedFlyId; const live = statusSnapshot.get(fly.id); return ( ); })}
); }