waveform/app/(app)/settings/page.tsx
Chneemann 3e1d21f259
All checks were successful
Deploy Waveform to VPS / deploy (push) Successful in 1m16s
feat(settings): integrate AppHeader in SettingsView to support sidebar toggling
2026-09-25 10:20:09 +02:00

28 lines
818 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";
import { AppHeader } from "@/components/layout/AppHeader";
/** 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 p-4 flex-col h-full w-full bg-background min-h-0 overflow-hidden">
<AppHeader isSettings />
<SettingsView />
<AppFooter />
</div>
);
}