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 CancelEditingButton = React.memo(({ theme, onPress }) => (
|
2019-05-27 16:19:39 +00:00
|
|
|
<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}
|
2019-05-27 16:19:39 +00:00
|
|
|
/>
|
|
|
|
));
|
|
|
|
|
|
|
|
CancelEditingButton.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 CancelEditingButton;
|