import React from 'react'; import { useNavigate } from 'react-router-dom'; import { motion } from 'framer-motion'; import Typography from '../components/ui/Typography'; import { HiWrenchScrewdriver, HiArrowRight } from 'react-icons/hi2'; import { HiDatabase } from 'react-icons/hi'; import { cn } from '../lib/utils'; interface ToolCard { id: string; path: string; label: string; icon: React.ElementType; description: string; gradient: string; iconBg: string; status: 'available' | 'coming_soon'; } const toolCards: ToolCard[] = [ { id: 'entity-manager', path: '/entity-manager', label: 'Entity Manager', icon: HiDatabase, description: 'View and manage on-chain entities created by tools with search, filtering, and bulk operations', gradient: 'from-blue-500 to-purple-500', iconBg: 'from-blue-500 to-purple-500', status: 'available', }, { id: 'block-tester', path: '/block-tester', label: 'Block Tester', icon: HiWrenchScrewdriver, description: 'Test and preview HashLink blocks before deploying to the Hedera network', gradient: 'from-orange-500 to-red-500', iconBg: 'from-orange-500 to-red-500', status: 'available', }, ]; /** * ToolsPage component displays available development tools */ const ToolsPage: React.FC = () => { const navigate = useNavigate(); const handleCardClick = (tool: ToolCard) => { if (tool.status === 'available') { navigate(tool.path); } }; return (
Development Tools Powerful tools to help you build, test, and deploy on the Hedera network {toolCards.map((tool, index) => ( handleCardClick(tool)} className={cn( 'group relative overflow-hidden rounded-2xl bg-white dark:bg-gray-800/50', 'border border-gray-200/50 dark:border-gray-700/50 backdrop-blur-xl', 'shadow-lg hover:shadow-2xl transition-all duration-300', 'hover:scale-[1.02] hover:-translate-y-1', tool.status === 'available' ? 'cursor-pointer' : 'cursor-not-allowed opacity-60' )} >
{tool.status === 'available' && ( )}
{tool.label} {tool.status === 'coming_soon' && ( Coming Soon )}
{tool.description}
))} {toolCards.length === 0 && ( More tools coming soon We're constantly working on new development tools to help you build on Hedera )}
); }; export default ToolsPage;