waveform/app/(app)/settings/page.tsx
Chneemann db0616aa9a
All checks were successful
Deploy Waveform to VPS / deploy (push) Successful in 1m18s
fix(settings): remove unused props from SettingsView call
2026-09-23 10:36:37 +02:00

25 lines
703 B
TypeScript

/**
* @file app/(app)/settings/page.tsx
* @description Server component page for user settings, handling session authentication and rendering SettingsView.
*/
import { auth } from "@/auth";
import { redirect } from "next/navigation";
import { SettingsView } from "@/components/settings/SettingsView";
import AppFooter from "@/components/layout/AppFooter";
/** Renders the settings page layout with session validation. */
export default async function SettingsPage() {
const session = await auth();
if (!session?.user?.id) {
redirect("/login");
}
return (
<div className="flex flex-col h-full w-full bg-background p-4">
<SettingsView />
<AppFooter />
</div>
);
}