"use client";

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

/**
 * /scrapers/cian-cookies redirects to /scrapers/cian where cookie management
 * is now integrated as a dedicated section at the bottom of the Cian page.
 */
export default function CianCookiesRedirect() {
  const router = useRouter();
  useEffect(() => {
    router.replace("/scrapers/cian");
  }, [router]);

  return (
    <p style={{ padding: "2rem", fontFamily: "sans-serif" }}>
      Перенаправление на страницу Cian скраппера…
    </p>
  );
}
