261012_01_FST: first commit

This commit is contained in:
2026-10-12 12:37:46 +09:00
commit 964269cd82
137 changed files with 17476 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
"use client";
import { useEffect, useRef } from "react";
import { useRouter } from "next/navigation";
import { useLogoutMutation } from "@/query/auth";
import { LoadingOverlayAdapter } from "@/components/app-shell/LoadingOverlayAdapter";
export default function LogoutPage() {
const router = useRouter();
const logoutMutation = useLogoutMutation();
const started = useRef(false);
useEffect(() => {
if (started.current) return;
started.current = true;
void logoutMutation.mutateAsync().finally(() => router.replace("/login"));
}, [logoutMutation, router]);
return <LoadingOverlayAdapter force label="로그아웃 중" />;
}