import { motion } from "framer-motion"; import { Buildings, CheckCircle, Rocket, Target, } from "@phosphor-icons/react"; import type { ProfileSnapshot } from "@shared/types"; import type { AppLocale } from "@shared/locale"; import { ConnectorReadiness } from "./ConnectorReadiness"; type Step = "language" | "company" | "mission" | "launch"; const STEP_LABELS_CONFIG = [ { key: "onboarding.stepLabel1", icon: Buildings }, { key: "onboarding.stepLabel2", icon: Target }, { key: "onboarding.stepLabel3", icon: Rocket }, ] as const; interface OnboardingHeroProps { step: Step; connectors: ProfileSnapshot["connectors"]; currentLocale: AppLocale; hasRunnableConnector: boolean; onOpenClaudeSettings: () => void; t: (key: string) => string; } export function OnboardingHero({ step, connectors, currentLocale, hasRunnableConnector, onOpenClaudeSettings, t, }: OnboardingHeroProps) { const stepIndex = step === "language" ? -1 : step === "company" ? 0 : step === "mission" ? 1 : 2; const stepLabels = STEP_LABELS_CONFIG.map((cfg) => ({ label: t(cfg.key), icon: cfg.icon, })); return (