import { hideControl, startConversation } from 'Actions/actions' import withLanguage from 'Components/utils/withLanguage' import { makeJsx } from 'Engine/evaluation' import { createMarkdownDiv } from 'Engine/marked' import { compose } from 'ramda' import React from 'react' import emoji from 'react-easy-emoji' import { connect } from 'react-redux' import './Controls.css' import withColours from './utils/withColours' function Controls({ controls, startConversation, hideControl, foldedSteps, colours, hiddenControls, language }) { if (!controls?.length) return null /* TODO controls are not translated yet, since our translation system doesn't handle nested yaml properties of base.yaml */ if (language === 'en') return null return (