Rocket.Chat.ReactNative/app/containers/MessageBox/RightButtons.ios.js

20 lines
415 B
JavaScript
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import { SendButton } from './buttons';
const RightButtons = React.memo(({ theme, showSend, submit }) => {
if (showSend) {
2019-12-04 16:39:53 +00:00
return <SendButton theme={theme} onPress={submit} />;
}
return null;
});
RightButtons.propTypes = {
2019-12-04 16:39:53 +00:00
theme: PropTypes.string,
showSend: PropTypes.bool,
submit: PropTypes.func.isRequired
};
export default RightButtons;