"use client"; import { useState } from "react"; import { ChevronDown } from "lucide-react"; import { useChatStore } from "@/lib/store"; import { MODELS } from "@/lib/constants"; import { SettingRow, SectionHeader, Slider } from "./SettingRow"; import { cn } from "@/lib/utils"; export function ModelSettings() { const { settings, updateSettings, resetSettings } = useChatStore(); const [showAdvanced, setShowAdvanced] = useState(false); const selectedModel = MODELS.find((m) => m.id === settings.model); return (