"use client";

import { useEffect } from "react";
import { useRouter } from "next/navigation";

// WhatsApp management moved into Site Settings (its own tab) — this route now
// just redirects there so old links/bookmarks (and the backend's failure-alert
// email, which links here) still land somewhere useful.
export default function WhatsAppRedirectPage() {
  const router = useRouter();
  useEffect(() => {
    router.replace("/dashboard/admin/settings?tab=whatsapp");
  }, [router]);
  return <div className="p-6 text-sm text-gray-500">Redirecting…</div>;
}
