import { redirect } from "next/navigation";
import { getSessionUser } from "@/lib/server/session";
import SettingsContent from "@/components/settings-content";

export default async function SettingsPage() {
    const user = await getSessionUser();
    if (!user) redirect("/login");
    return <SettingsContent />;
}
