a && "content" in data) {
                if (data.content) {
                    processData({ contents: data.content });
                } else {
                    hideMessage();
                }
            }
            // If data has action property
            else if (data.action && "value" in data && data.action == "content") {
                if (data.value) {
                    try {
                        const parsed = JSON.parse(data.value);
                        if (parsed &