"use client";

import { useEffect } from "react";
import { useRouter } from "next/navigation";
import { LoadingState } from "@/src/shared/ui";

export default function LegacyRedirect() {
  const router = useRouter();
  useEffect(() => {
    router.replace("/healthcare/clinic/departments");
  }, [router]);
  return <LoadingState label="در حال انتقال…" />;
}
