import React from 'react'; import { FolderTree, MessageSquare, Code } from 'lucide-react'; interface PopularChatTopicsProps { append: (text: string) => void; } interface ChatTopic { id: string; icon: React.ReactNode; description: string; prompt: string; } const POPULAR_TOPICS: ChatTopic[] = [ { id: 'organize-photos', icon: , description: 'Organize the photos on my desktop into neat little folders by subject matter', prompt: 'Organize the photos on my desktop into neat little folders by subject matter', }, { id: 'government-forms', icon: , description: 'Describe in detail how various forms of government works and rank each by units of geese', prompt: 'Describe in detail how various forms of government works and rank each by units of geese', }, { id: 'tamagotchi-game', icon: , description: 'Develop a tamagotchi game that lives on my computer and follows a pixelated styling', prompt: 'Develop a tamagotchi game that lives on my computer and follows a pixelated styling', }, ]; export default function PopularChatTopics({ append }: PopularChatTopicsProps) { const handleTopicClick = (prompt: string) => { append(prompt); }; return (

Popular chat topics

{POPULAR_TOPICS.map((topic) => (
handleTopicClick(topic.prompt)} >
{topic.icon}

{topic.description}

))}
); }