import { cn } from "~/lib/utils.ts"; import type { Option } from "./discover-state.ts"; // 一行单选芯片(选中用 pill-selected);标签在左,窄屏横向滚动。allLabel 给了就多一个「不限」芯片(value 为空)。 export function ChipRow({ label, options, value, onChange, allLabel, }: { label: string; options: Option[]; value: string | undefined; onChange: (v: string | undefined) => void; allLabel?: string; }) { const all = allLabel ? [{ value: "", label: allLabel }, ...options] : options; return (