"use client"; import type { StudyIntent } from "@/lib/study-intents"; import { cn } from "@/lib/utils"; import { primaryChips } from "./constants"; export function QuickActions({ activeIntent, disabled, onAction, layout = "auto", }: { activeIntent: StudyIntent; disabled: boolean; onAction: (intent: StudyIntent, prompt: string) => void; layout?: "auto" | "scroll" | "grid"; }) { const useScroll = layout === "scroll"; const useGrid = layout === "grid" || layout === "auto"; return (
{primaryChips.map((chip) => { const Icon = chip.icon; const active = chip.intent === activeIntent; return ( ); })}
); }