import Link from "next/link" import { redirect } from "next/navigation" import { eq } from "drizzle-orm" import { db } from "@/lib/db" import { profiles } from "@/lib/db/schema" import { getSessionUser } from "@/lib/session" import { PLAN_LIMITS } from "@/lib/stripe/plans" import { BrandingForm } from "@/components/forms/branding-form" import { Sparkles, ArrowRight } from "lucide-react" import type { Plan } from "@/types" export const metadata = { title: "White-Label Branding" } export default async function BrandingSettingsPage() { const user = await getSessionUser() if (!user) redirect("/login") const profile = await db.query.profiles.findFirst({ where: eq(profiles.id, user.id), columns: { plan: true, brand_name: true, brand_logo_url: true, brand_color: true, hide_powered_by: true, }, }) const plan = (profile?.plan ?? "starter") as Plan const hasWhiteLabel = PLAN_LIMITS[plan]?.hasWhiteLabel === true return (
Customize how the tenant portal looks with your own brand.
Put your own brand name, logo, and accent color on the tenant portal — and remove the “Powered by” line. Available on the Landlord and Lifetime plans.
Upgrade to unlock