import { Label } from '@/components/ui/label'; import { Brain, UserCircle } from 'lucide-react'; import { cn } from '@/lib/utils'; import { AgentModel, ThinkingLevel, AIProfile } from '@/store/app-store'; import { PROFILE_ICONS } from './model-constants'; interface ProfileQuickSelectProps { profiles: AIProfile[]; selectedModel: AgentModel; selectedThinkingLevel: ThinkingLevel; onSelect: (model: AgentModel, thinkingLevel: ThinkingLevel) => void; testIdPrefix?: string; showManageLink?: boolean; onManageLinkClick?: () => void; } export function ProfileQuickSelect({ profiles, selectedModel, selectedThinkingLevel, onSelect, testIdPrefix = 'profile-quick-select', showManageLink = false, onManageLinkClick, }: ProfileQuickSelectProps) { if (profiles.length === 0) { return null; } return (
Presets
{profiles.slice(0, 6).map((profile) => { const IconComponent = profile.icon ? PROFILE_ICONS[profile.icon] : Brain; const isSelected = selectedModel === profile.model && selectedThinkingLevel === profile.thinkingLevel; return ( ); })}

Or customize below. {showManageLink && onManageLinkClick && ( <> {' '} Manage profiles in{' '} )}

); }