import type { Metadata } from "next"; import { Bell, Gift, LogIn } from "lucide-react"; import Link from "next/link"; import { auth } from "@/auth"; import { Button } from "@/components/ui/button"; import { EmptyState } from "@/components/feedback/empty-state"; import { ProfileCard } from "@/components/ui/profile-card"; import { prisma } from "@/lib/db/prisma"; import { SignOutButton } from "@/features/auth/components/sign-out-button"; import { InstallAppButton } from "@/features/pwa/components/install-app-button"; export const metadata: Metadata = { title: "Settings" }; export const dynamic = "force-dynamic"; export default async function CustomerSettingsPage() { const session = await auth(); if (!session?.user) { return (

Settings

Sign In } />
); } const customerProfile = await prisma.customerProfile.findUnique({ where: { userId: session.user.id }, }); return (

Settings

Get the app

); }