import React, { Component } from "react"; import ArrowRightAltIcon from "@material-ui/icons/ArrowRightAlt"; import { toast } from "react-toastify"; export default class RadioMessage extends Component { constructor(props) { super(props); this.state = { value: this.props.message.value, }; } handleRadioChange = (newValue) => { if (this.props.isActive) this.setState({ value: newValue, }); }; render() { const { message, isActive } = this.props; return (