// SellerOnboarding.jsx — multi-step onboarding for a new seller signing up to sell on Allen. // Steps: business info -> RFC/tax -> address -> bank -> first product (optional) -> done. const { useState: useOnbState } = React; const STEPS = [ { id: "negocio", label: "Tu negocio" }, { id: "fiscal", label: "Datos fiscales" }, { id: "direccion", label: "Dirección" }, { id: "banco", label: "Cuenta bancaria" }, { id: "verifica", label: "Verificación" }, ]; const SellerOnboarding = ({ onNav }) => { const [step, setStep] = useOnbState(0); const [form, setForm] = useOnbState({ business: "", category: "herramientas", year: "", desc: "", rfc: "", regimen: "rif", razonSocial: "", street: "", area: "", city: "Puerto Vallarta", state: "Jalisco", zip: "", bank: "BBVA", clabe: "", titular: "", accept: false, }); const set = (k, v) => setForm(f => ({ ...f, [k]: v })); const toast = useToast(); const next = () => { if (step < STEPS.length - 1) setStep(s => s + 1); else { toast("¡Solicitud enviada! Te avisamos en menos de 24 h"); onNav("seller"); } }; const prev = () => step > 0 && setStep(s => s - 1); return (

Vende en Allen

Te toma 5 minutos. Aprobamos tu tienda en menos de 24 horas.

{/* Stepper */}
{STEPS.map((s, i) => ( ))}
{step === 0 && } {step === 1 && } {step === 2 && } {step === 3 && } {step === 4 && }
{step === STEPS.length - 1 ? "Enviar solicitud" : "Continuar"}
{/* Help footer */}
¿Dudas con el registro?
WhatsApp: +52 33 5555 0202 · sellers@allenmx.com
); }; const StepBusiness = ({ form, set }) => ( <>

Cuéntanos de tu negocio

Estos datos se ven en tu tienda pública.

set("business", e.target.value)} />
set("year", e.target.value)} />