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

22 lines
453 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 CancelEditingButton = React.memo(({ theme, onPress }) => (
<BaseButton
onPress={onPress}
testID='messagebox-cancel-editing'
accessibilityLabel='Cancel_editing'
2020-07-27 19:53:33 +00:00
icon='close'
2019-12-04 16:39:53 +00:00
theme={theme}
/>
));
CancelEditingButton.propTypes = {
2019-12-04 16:39:53 +00:00
theme: PropTypes.string,
onPress: PropTypes.func.isRequired
};
export default CancelEditingButton;