2019-05-27 16:19:39 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import BaseButton from './BaseButton';
|
|
|
|
|
2021-09-13 20:41:05 +00:00
|
|
|
interface ICancelEditingButton {
|
|
|
|
theme: string;
|
|
|
|
onPress(): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
const CancelEditingButton = React.memo(({ theme, onPress }: ICancelEditingButton) => (
|
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
|
|
|
/>
|
|
|
|
));
|
|
|
|
|
|
|
|
export default CancelEditingButton;
|