"use client"; import { SparklesIcon } from "lucide-react"; import Link from "next/link"; import { FileRoleBadge } from "@/components/labels"; import { Checkbox } from "@/components/ui/checkbox"; import { groupSplitFiles } from "@/lib/file-groups"; import { formatBytes } from "@/lib/format"; import { cn } from "@/lib/utils"; /** Companion files picked along with the chosen quant; each can be unchecked. */ export function RecommendedStrip({ files, paths, active, onToggle, className, }: { files: { path: string; size: number }[]; /** All recommended paths (checked or not). */ paths: string[]; active: Set; onToggle: (paths: string[], on: boolean) => void; className?: string; }) { if (paths.length === 0) return null; const wanted = new Set(paths); const entries = groupSplitFiles(files.filter((f) => wanted.has(f.path))); return (
Recommended with your quant Change in Settings
{entries.map((e) => { const parts = e.parts.map((p) => p.path); const on = parts.every((p) => active.has(p)); return ( ); })}
); }