import React from 'react'; import PropTypes from 'prop-types'; import { SendButton, AudioButton, FileButton } from './buttons'; const RightButtons = React.memo(({ theme, showSend, submit, recordAudioMessage, recordAudioMessageEnabled, showFileActions }) => { if (showSend) { return ; } if (recordAudioMessageEnabled) { return ( <> ); } return ; }); RightButtons.propTypes = { theme: PropTypes.string, showSend: PropTypes.bool, submit: PropTypes.func.isRequired, recordAudioMessage: PropTypes.func.isRequired, recordAudioMessageEnabled: PropTypes.bool, showFileActions: PropTypes.func.isRequired }; export default RightButtons;