"use client"; import React, { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; import { ColorPickerField } from "@/components/admin/ColorPickerField"; import { BrandingPreviewPanel } from "@/components/admin/BrandingPreviewPanel"; import { extractDominantColors } from "@/lib/extractColors"; import { errorMessage } from "@/lib/utils"; import { ConnectForm } from "@/components/admin/LicenceTab"; import { uploadImage } from "@/lib/eventSetup"; import { apiV2Data } from "@/lib/apiV2"; 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.
)} {/* Licence: connect to the Cross Events Hub now, or later in Site settings → Licence. */}✓ Connected — licensed to {licenceConnected}.
) : ( <>Enter the licence key you received to connect this site to the Cross Events Hub. Until a licence is connected, events can't be created or edited. You can also do this later under Admin → Site Settings → Licence.
Step {step} of {TOTAL_STEPS}
)}