"use client"; import { BotIcon, PlusIcon } from "lucide-react"; import { useRouter } from "next/navigation"; import { Button } from "@/components/ui/button"; import { useAgents } from "@/core/agents"; import { useI18n } from "@/core/i18n/hooks"; import { AgentCard } from "./agent-card"; export function AgentGallery() { const { t } = useI18n(); const { agents, isLoading } = useAgents(); const router = useRouter(); const handleNewAgent = () => { router.push("/workspace/agents/new"); }; return (
{/* Page header */}

{t.agents.title}

{t.agents.description}

{/* Content */}
{isLoading ? (
{t.common.loading}
) : agents.length === 0 ? (

{t.agents.emptyTitle}

{t.agents.emptyDescription}

) : (
{agents.map((agent) => ( ))}
)}
); }