mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
26 lines
748 B
TypeScript
26 lines
748 B
TypeScript
import { getSession } from "@lib/auth"
|
|
import { OnboardingForm } from "./onboarding-form"
|
|
import { OnboardingProvider } from "./onboarding-context"
|
|
import { OnboardingProgressBar } from "./progress-bar"
|
|
import { redirect } from "next/navigation"
|
|
import { OnboardingBackground } from "./onboarding-background"
|
|
import type { Metadata } from "next"
|
|
export const metadata: Metadata = {
|
|
title: "Welcome to Supermemory",
|
|
description: "We're excited to have you on board.",
|
|
}
|
|
|
|
export default function OnboardingPage() {
|
|
const session = getSession()
|
|
|
|
if (!session) redirect("/login")
|
|
|
|
return (
|
|
<OnboardingProvider>
|
|
<OnboardingProgressBar />
|
|
<OnboardingBackground>
|
|
<OnboardingForm />
|
|
</OnboardingBackground>
|
|
</OnboardingProvider>
|
|
)
|
|
}
|