/** * @file page.tsx * @description Server component acting as the welcome landing page, redirecting authenticated users to the summary view or presenting sign-in and register options. */ import { auth } from "@/auth"; import { redirect } from "next/navigation"; import Link from "next/link"; import Footer from "@/app/components/layout/Footer"; /** * Renders the welcome page containing branding elements, authentication status checks, * and navigation links for signing in or registering. * * @async * @returns {Promise} The rendered welcome landing page component. */ export default async function WelcomePage() { const session = typeof auth === "function" ? await auth() : null; if (session) { redirect("/summary"); } return (

Flowstate

Welcome Page

Sign In Register
); }