function PageSettings({pushToast, theme, onTheme}){
const I = window.Icons;
const [tab, setTab] = React.useState('general');
return (
<>
{[
{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' && (
<>
>
)}
{tab==='org' && (
)}
{tab==='notifications' && (
)}
{tab==='security' && (
Seguridad
)}
{tab==='billing' && (
)}
{tab==='api' && (
API & Webhooks
)}
{tab==='ai' && (
FLUX Copilot · Powered by Claude
)}
>
);
}
function Field({label, value}){
return (