// — the bar at the foot of the agents list in select mode: how // many agents are picked, the ways to change the pick (all shown, none), the // action to take on them (broadcast, the only one so far) and done, which leaves // select mode. It sticks to the bottom of the viewport while the list scrolls // under it, so the action is in reach however far down the picks are. import { Button } from "../../ui/button/Button.js"; import { MAX_BROADCAST } from "../broadcast/broadcast-types.js"; import "./SelectionBar.css"; export function SelectionBar({ count, shown, onSelectAll, onClear, onBroadcast, onDone, }: { /** Agents picked. */ count: number; /** Agents the filter shows, so "select all" has something to pick. */ shown: number; onSelectAll: () => void; onClear: () => void; onBroadcast: () => void; onDone: () => void; }) { const overCap = count > MAX_BROADCAST; return ( ); }