
        const label = document.getElementById(statusId);
        const enabled = checkbox.checked;

        label.textContent = enabled ? 'Enabled' : 'Disabled';

         const response = await fetch(`{% url 'settings:emoji_recipes' %}`, {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/json',
                    'X-CSRFToken': getCookie('csrftoken'),
                },
            body: JSON.stringify({ enabled: enabled })
            });

     