import React from "react"; import { useNavigate } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { ClipboardCheck, Sparkles, Globe, ArrowRight } from "lucide-react"; import { TenantWelcomeLayout, WelcomeStepCard, OnboardingCTAList, useOnboardingProgress, } from ".."; import { Button } from "@/components/ui/button"; import { ADMIN_EVENT_CREATE_PATH, ADMIN_EVENTS_PATH, ADMIN_HOME_PATH } from "../../constants"; import { FrostedSurface } from "../../components/tenant"; export default function WelcomeEventSetupPage() { const navigate = useNavigate(); const { markStep } = useOnboardingProgress(); const { t } = useTranslation("onboarding"); React.useEffect(() => { markStep({ lastStep: "event-setup" }); }, [markStep]); return (
{[ { id: "story", title: t("eventSetup.tiles.story.title"), copy: t("eventSetup.tiles.story.copy"), icon: Sparkles, }, { id: "team", title: t("eventSetup.tiles.team.title"), copy: t("eventSetup.tiles.team.copy"), icon: Globe, }, { id: "launch", title: t("eventSetup.tiles.launch.title"), copy: t("eventSetup.tiles.launch.copy"), icon: ArrowRight, }, ].map((item) => (

{item.title}

{item.copy}

))}

{t("eventSetup.cta.heading")}

{t("eventSetup.cta.description")}

navigate(-1), variant: "secondary", }, { id: "dashboard", label: t("eventSetup.actions.dashboard.label"), description: t("eventSetup.actions.dashboard.description"), buttonLabel: t("eventSetup.actions.dashboard.button"), onClick: () => navigate(ADMIN_HOME_PATH), }, { id: "events", label: t("eventSetup.actions.events.label"), description: t("eventSetup.actions.events.description"), buttonLabel: t("eventSetup.actions.events.button"), onClick: () => navigate(ADMIN_EVENTS_PATH), }, ]} />
); }