import React from 'react'; import { useNavigate } from 'react-router-dom'; import { motion } from 'framer-motion'; import Typography from '../components/ui/Typography'; import { HiChatBubbleBottomCenterText, HiServerStack, HiPuzzlePiece, HiUserCircle, HiCog6Tooth, HiQuestionMarkCircle, HiHeart, HiArrowRight, } from 'react-icons/hi2'; import { cn } from '../lib/utils'; interface DashboardCard { id: string; path: string; label: string; icon: React.ElementType; description: string; gradient: string; iconBg: string; category: 'primary' | 'secondary'; } const dashboardCards: DashboardCard[] = [ { id: 'chat', path: '/chat', label: 'Agent Chat', icon: HiChatBubbleBottomCenterText, description: 'Have conversations with your AI assistant powered by advanced language models', gradient: 'from-purple-600 to-hgo-purple', iconBg: 'from-purple-600 to-hgo-purple', category: 'primary', }, { id: 'mcp', path: '/mcp', label: 'MCP Servers', icon: HiServerStack, description: 'Connect and manage extensions that give your assistant new capabilities', gradient: 'from-green-600 to-hgo-green', iconBg: 'from-green-600 to-hgo-green', category: 'primary', }, { id: 'plugins', path: '/plugins', label: 'Plugins', icon: HiPuzzlePiece, description: 'Browse and install plugins to extend functionality and add new features', gradient: 'from-blue-500 to-hgo-blue', iconBg: 'from-blue-500 to-hgo-blue', category: 'primary', }, { id: 'hcs10', path: '/hcs10-profile', label: 'My Profile', icon: HiUserCircle, description: 'Manage your Hedera profile and customize your identity on the network', gradient: 'from-blue-600 to-blue-800', iconBg: 'from-blue-600 to-blue-800', category: 'primary', }, { id: 'settings', path: '/settings', label: 'Settings', icon: HiCog6Tooth, description: 'Configure your workspace, API keys, and application preferences', gradient: 'from-gray-500 to-gray-600', iconBg: 'from-gray-500 to-gray-600', category: 'secondary', }, { id: 'help', path: '/help', label: 'Help & Docs', icon: HiQuestionMarkCircle, description: 'Get support, read documentation, and learn how to use all features', gradient: 'from-blue-500 to-indigo-600', iconBg: 'from-blue-500 to-indigo-600', category: 'secondary', }, { id: 'acknowledgements', path: '/acknowledgements', label: 'Acknowledgements', icon: HiHeart, description: 'View credits, open source licenses, and contributors to this project', gradient: 'from-pink-500 to-rose-600', iconBg: 'from-pink-500 to-rose-600', category: 'secondary', }, ]; const DashboardPage: React.FC = () => { const navigate = useNavigate(); const primaryCards = dashboardCards.filter( (card) => card.category === 'primary' ); const secondaryCards = dashboardCards.filter( (card) => card.category === 'secondary' ); const handleCardClick = (path: string) => { if (path === '/help') { window.open('https://docs.hashgraphonline.com', '_blank'); } else { navigate(path); } }; return (