"use client"; import axios from "axios" import { useRouter } from "next/navigation" import { Trash2, AlertTriangle } from "lucide-react"; import useSite from "@/hooks/useSites"; interface DeleteSiteProps { siteId: number; } export default function DeleteSite({ siteId }: DeleteSiteProps) { const router = useRouter() const { deleteSite } = useSite() const handleDeleteSite = () => { deleteSite(siteId) router.push("/dashboard/sites") } return (

Delete Site

Are you sure you want to delete this site?

This will also delete all networks associated with this site.

This action cannot be undone.
); }