Move business logic out of App Router into module packages, add boundary validation scripts, and keep all routes as thin re-exports without changing URLs or API behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
367 B
TypeScript
14 lines
367 B
TypeScript
"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/admin/doctors");
|
|
}, [router]);
|
|
return <LoadingState label="در حال انتقال…" />;
|
|
}
|