2019-05-27 16:19:39 +00:00
|
|
|
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 }) => (
|
2019-05-27 16:19:39 +00:00
|
|
|
<BaseButton
|
|
|
|
onPress={onPress}
|
|
|
|
testID='messagebox-send-message'
|
|
|
|
accessibilityLabel='Send_message'
|
2020-06-05 13:28:58 +00:00
|
|
|
icon='send-active'
|
2019-12-04 16:39:53 +00:00
|
|
|
theme={theme}
|
2019-05-27 16:19:39 +00:00
|
|
|
/>
|
|
|
|
));
|
|
|
|
|
|
|
|
SendButton.propTypes = {
|
2019-12-04 16:39:53 +00:00
|
|
|
theme: PropTypes.string,
|
2019-05-27 16:19:39 +00:00
|
|
|
onPress: PropTypes.func.isRequired
|
|
|
|
};
|
|
|
|
|
|
|
|
export default SendButton;
|