"use client"; import React, { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; import { apiFetch, API_BASE } from "@/lib/api"; import { ColorPickerField } from "@/components/admin/ColorPickerField"; import { BrandingPreviewPanel } from "@/components/admin/BrandingPreviewPanel"; import { extractDominantColors } from "@/lib/extractColors"; type Step = 1 | 2 | 3 | 4 | 5 | 6; const TOTAL_STEPS = 5; // steps 1-5; step 6 is the done screen function ProgressBar({ step }: { step: Step }) { return (
{hint}
}Let's set up your events platform
Configure outgoing email so tickets, payment confirmations, and account notifications get delivered. You can skip this and configure it later under Admin → Site Settings (where you can also test the connection).
{orgName || "Your organisation"}'s events platform is ready. Log in with the admin account you just created.
{!smtpHost && (Email delivery is not configured yet. Set it up under Admin → Site Settings after logging in.
)}Step {step} of {TOTAL_STEPS}
)}