"use client"; import { ArrowRight, Bot, Brain, CheckCircle, FileText, MessageSquare, Sparkles, UserPlus, Users, Zap, } from "lucide-react"; import { motion } from "motion/react"; import { useRouter } from "next/navigation"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { useGlobalLLMConfigs, useLLMConfigs, useLLMPreferences } from "@/hooks/use-llm-configs"; interface CompletionStepProps { searchSpaceId: number; } export function CompletionStep({ searchSpaceId }: CompletionStepProps) { const router = useRouter(); const { llmConfigs } = useLLMConfigs(searchSpaceId); const { globalConfigs } = useGlobalLLMConfigs(); const { preferences } = useLLMPreferences(searchSpaceId); // Combine global and user-specific configs const allConfigs = [...globalConfigs, ...llmConfigs]; const assignedConfigs = { long_context: allConfigs.find((c) => c.id === preferences.long_context_llm_id), fast: allConfigs.find((c) => c.id === preferences.fast_llm_id), strategic: allConfigs.find((c) => c.id === preferences.strategic_llm_id), }; return (
{/* Next Steps - What would you like to do? */}

What would you like to do next?

Choose an option to continue

{/* Manage Team Card */}
Manage Team Invite team members and collaborate on your search space
Invite team members
Assign roles & permissions
Collaborate together
{/* Add Sources Card */}
Add Sources Connect your data sources to start building your knowledge base
Connect documents and files
Import from various sources
Build your knowledge base
{/* Start Chatting Card */}
Start Chatting Jump right into the AI researcher and start asking questions
AI-powered conversations
Research and explore topics
Get instant insights
{/* Quick Stats */} ✓ {allConfigs.length} LLM provider{allConfigs.length > 1 ? "s" : ""} available {globalConfigs.length > 0 && ( ✓ {globalConfigs.length} Global config(s) )} {llmConfigs.length > 0 && ( ✓ {llmConfigs.length} Custom config(s) )} ✓ All roles assigned ✓ Ready to use
); }