+ + + + {item.icon} + + + + {item.group} + + {item.name} + + + + { + setIntegrationStates((current) => ({ + ...current, + [item.id]: !current[item.id], + })); + }} + style={{ + border: 'none', + borderRadius: 999, + width: 54, + height: 30, + padding: 3, + background: isEnabled ? item.color : '#d6e0e5', + display: 'flex', + alignItems: 'center', + justifyContent: isEnabled ? 'flex-end' : 'flex-start', + cursor: 'pointer', + flex: '0 0 auto', + }} + title={isEnabled ? `Desabilitar ${item.name}` : `Habilitar ${item.name}`} + > + + + + + + {item.description} + + + + + {isEnabled ? 'Habilitado' : 'Desabilitado'} + + + Configurar + + +