"use client" import { useRouter } from "next/navigation"; interface SitesProps { id: string; name: string; description: string; networks: Network[]; } interface Network { id: number; name: string; ipv4Subnet?: string; ipv6Subnet?: string; gateway?: string; } export default function Sites({ id, name, description, networks }: SitesProps) { const router = useRouter(); return (

{name}

{description}

{ networks && networks.length > 0 && (

Networks: {networks.map((network) => network.name).join(", ")}

)}
) }