import React from 'react';
import PropTypes from 'prop-types';
import { SendButton, AudioButton, ActionsButton } from './buttons';
const RightButtons = React.memo(({
theme, showSend, submit, recordAudioMessage, recordAudioMessageEnabled, showMessageBoxActions
}) => {
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,
showMessageBoxActions: PropTypes.func.isRequired
};
export default RightButtons;