import { TiLightbulb } from "react-icons/ti"; import { MdWorkOutline } from "react-icons/md"; import { IoMdCheckmark } from "react-icons/io"; import { MdOutlinePermIdentity } from "react-icons/md"; import classNames from "classnames"; import { Form } from "@/_types"; const STEPS = [ { title: "Brand", description: "Tell us about your brand.", icon: MdOutlinePermIdentity, active: "bg-amber-500 !border-amber-500", key: "brand_name", }, { title: "Concept", description: "What's your brand about?", icon: TiLightbulb, active: "bg-violet-500 !border-violet-500", key: "description", }, { title: "Industry", description: "What industry are you in?", icon: MdWorkOutline, active: "bg-emerald-500 !border-emerald-500", key: "industry", }, ]; export const Steps = ({ form }: { form: Form }) => { return (
{STEPS.map((s, i) => ( <>
{form[s.key as keyof typeof form] ? ( ) : ( )}

{s.title}

{s.description}

{i !== STEPS.length - 1 && (
)} ))}
); };