"use client"
import { useRouter } from "next/navigation";
import { Site } from "@/app/types";
import { ChevronRight } from "lucide-react";
export default function Sites({ id, name, description, networks }: Site) {
const router = useRouter();
return (
{/* Card content */}
{name}
{description ? (
{description}
) : (
No description provided
)}
{networks && networks.length > 0 ? (
Networks:
{networks.map((network, index) => (
{network.name}
))}
) : (
)}
router.push(`/dashboard/sites/${id}`)}
className="absolute top-0 right-0 bottom-0 h-full w-12 bg-primary hover:bg-primary-focus text-primary-content flex items-center justify-center cursor-pointer transition-colors"
>
);
}