/* ============================================================ EMPRESA > DASHBOARD CLIENTES > PERSONALIZAÇÃO ============================================================ */ function PagePersonalizacao({ clientes, onSave, selectedId, setSelectedId, clientName, showToast }){ const client = clientes.find(c=>c.id===selectedId) || clientes[0]; const [name, setName] = useState(client ? client.empresa : ''); const [primary, setPrimary] = useState(client ? client.primary : PALETTE[0]); const [secondary, setSecondary] = useState(client ? client.secondary : PALETTE[5]); useEffect(()=>{ if(client){ setName(client.empresa); setPrimary(client.primary); setSecondary(client.secondary); } }, [selectedId]); if(!client) return
Nenhum cliente cadastrado ainda.
; const initial = (name.trim().charAt(0)||'C').toUpperCase(); function save(){ onSave(client.id, { empresa:name, primary, secondary, initial }); } return (PNG ou SVG · fundo transparente
recomendado 512×512px
Este é o portal exatamente como o cliente selecionado vai vê-lo.