import React from 'react' import './Controls.css' import emoji from 'react-easy-emoji' import { connect } from 'react-redux' import { startConversation } from 'Actions/actions' function Controls({ blockingInputControls, controls, startConversation }) { return (
{blockingInputControls && (

{blockingInputControls[0].message}

)} {!blockingInputControls && controls.length > 0 && ( <> {emoji('⚠️')} )}
) } export default connect( (state, props) => ({ key: props.language }), { startConversation } )(Controls)