import type { Route } from "./+types/ecosystem"; import React from "react"; import { ProtectedRoute } from "~/components/auth/protected-route"; import { DashboardLayout } from "~/components/dashboard/layout"; import { Card, CardContent, CardHeader, CardTitle } from "~/components/ui/card"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "~/components/ui/dialog"; import { NetworkGraph } from "~/components/ecosystem/network-graph"; import { InfoPanel } from "~/components/ecosystem/info-panel"; import { Checkbox } from "~/components/ui/checkbox"; export function meta({}: Route.MetaArgs) { return [ { title: "زیست بوم فناوری" }, { name: "description", content: "نمایش زیست بوم فناوری با گراف شبکه‌ای شرکت‌ها" }, ]; } export default function EcosystemPage() { const [selectedCompany, setSelectedCompany] = React.useState< | { id: string; label?: string; [key: string]: unknown } | null >(null); const [highlightUnpaid, setHighlightUnpaid] = React.useState(false); const closeDialog = () => setSelectedCompany(null); return (
{// }
گراف شبکه‌ای شرکت‌ها
{/* Node info dialog */} !open && closeDialog()}> {selectedCompany?.label || "اطلاعات شرکت"} شناسه: {selectedCompany?.id}

Test

); }