function PageSettings({pushToast, theme, onTheme}){ const I = window.Icons; const [tab, setTab] = React.useState('general'); return ( <>

Configuración

Preferencias de la cuenta, equipo, notificaciones y seguridad.

{[ {id:'general',label:'General',icon:'Cog'}, {id:'org',label:'Organización',icon:'Globe'}, {id:'notifications',label:'Notificaciones',icon:'Bell'}, {id:'security',label:'Seguridad',icon:'Lock'}, {id:'billing',label:'Facturación',icon:'Tag'}, {id:'api',label:'API & Webhooks',icon:'Hash'}, {id:'ai',label:'FLUX Copilot',icon:'Sparkles'}, ].map(t=>{ const Ic = I[t.icon]; return ( ); })}
{tab==='general' && ( <>
Preferencias generales
)} {tab==='org' && (
Organización
)} {tab==='notifications' && (
Notificaciones
)} {tab==='security' && (
Seguridad
)} {tab==='billing' && (
Facturación
)} {tab==='api' && (
API & Webhooks
)} {tab==='ai' && (
FLUX Copilot · Powered by Claude
)}
); } function Field({label, value}){ return (
{label}
{value}
); } function ToggleField({label, desc, value, onChange}){ return (
{label}
{desc &&
{desc}
}
); } window.PageSettings = PageSettings;