Rocket.Chat.ReactNative/app/containers/MessageBox/buttons/SendButton.js

22 lines
422 B
JavaScript
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import BaseButton from './BaseButton';
2019-12-04 16:39:53 +00:00
const SendButton = React.memo(({ theme, onPress }) => (
<BaseButton
onPress={onPress}
testID='messagebox-send-message'
accessibilityLabel='Send_message'
icon='send1'
2019-12-04 16:39:53 +00:00
theme={theme}
/>
));
SendButton.propTypes = {
2019-12-04 16:39:53 +00:00
theme: PropTypes.string,
onPress: PropTypes.func.isRequired
};
export default SendButton;