Skip to content

Instantly share code, notes, and snippets.

(() => {
// Funzioni di utilità
const convertConsentStatus = (status) => {
if (status === undefined) return '';
return status ? 'granted' : 'denied';
};
const getStatusColor = (status) => {
return status === 'granted' ? 'color: #29b6f6' : 'color: #C00';
};