// White-label brand onboarding modal — accessible from the Tweaks panel. // Shows the brand-configuration screen with live preview. function OnboardingModal({ open, onClose, theme, setTheme }) { const [tone, setTone] = React.useState('cercano'); const [step, setStep] = React.useState(1); if (!open) return null; const tones = [ { id: 'formal', label: 'Formal', sub: 'Usted, lenguaje cuidado' }, { id: 'casual', label: 'Casual', sub: 'Tú, relajado y directo' }, { id: 'tecnico', label: 'Técnico', sub: 'Términos del sector' }, { id: 'cercano', label: 'Cercano', sub: 'Como un amigo del negocio' }, ]; return (
e.stopPropagation()} style={{ background:'#fff', borderRadius: 22, maxWidth: 1040, width:'100%', maxHeight: '90vh', overflow:'auto', boxShadow:'0 40px 100px -20px rgba(8,20,40,.5)', display:'grid', gridTemplateColumns:'minmax(320px, 440px) 1fr', }}> {/* Left — form */}
Onboarding · Paso {step}/3

Configura la identidad de tu negocio.

En 3 pasos tu plataforma se viste con la marca de tu empresa. Tus clientes nunca verán a AI Company.

{/* Step 1 — Identity */}
setTheme({ brandName: e.target.value })} placeholder="Mi Tienda" />
{(theme.brandName || 'M').slice(0,1).toUpperCase()}
Arrastra tu logo aquí
PNG, SVG · hasta 2 MB
{[ { k:'primary', label:'Primario' }, { k:'secondary', label:'Secundario'}, { k:'accent', label:'Acento' }, ].map(c => (
{c.label}
{theme[c.k].toUpperCase()}
))}
{tones.map(t => ( ))}
{/* Right — live preview */}
Vista previa en tiempo real
{/* Mini-header preview */}
{(theme.brandName || 'M').slice(0,1).toUpperCase()}
{theme.brandName || 'Mi Tienda'} panel
{/* Dashboard preview */}
{[ { k:'Ventas hoy', v:'$3,248', tone:'good' }, { k:'Pedidos', v:'42', tone:'good' }, { k:'CSAT', v:'4.9', tone:'good' }, { k:'Stock bajo', v:'3', tone:'warn' }, ].map(s => (
{s.k}
{s.v}
))}
{/* Chat preview using theme colors */}
# general — {theme.brandName || 'Mi Tienda'}
D
Director · Bienvenido. He configurado tu equipo inicial.
M
Marketing · Listo el primer post — espera tu aprobación.
Tu equipo, tu marca. Tus clientes nunca verán a AI Company.
); } Object.assign(window, { OnboardingModal });