2022-05-10 17:40:08 +00:00
|
|
|
import React, { memo } from 'react';
|
|
|
|
import { View } from 'react-native';
|
|
|
|
|
2022-05-27 17:27:43 +00:00
|
|
|
import { CustomIcon } from '../../../CustomIcon';
|
|
|
|
import styles from '../../styles';
|
2022-05-10 17:40:08 +00:00
|
|
|
|
2022-05-26 17:10:24 +00:00
|
|
|
const Edited = memo(({ isEdited, testID }: { isEdited: boolean; testID?: string }) => {
|
2022-05-10 17:40:08 +00:00
|
|
|
if (!isEdited) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
2022-05-27 17:27:43 +00:00
|
|
|
<View testID={testID} style={styles.rightIcons}>
|
2024-04-18 10:19:54 +00:00
|
|
|
<CustomIcon name='edit' size={16} />
|
2022-05-10 17:40:08 +00:00
|
|
|
</View>
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
export default Edited;
|