"use client";

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

// 主设置页面 - 重定向到数据库设置
export default function SettingsPage() {
    const router = useRouter();

    useEffect(() => {
        router.replace("/settings/database");
    }, [router]);

    return (
        <div className="flex items-center justify-center py-12">
            <Loader2 className="h-8 w-8 animate-spin text-muted-foreground"/>
        </div>
    );
}
