2022-05-10 17:40:08 +00:00
|
|
|
import React, { memo } from 'react';
|
|
|
|
import { View } from 'react-native';
|
|
|
|
|
|
|
|
import { CustomIcon } from '../CustomIcon';
|
|
|
|
import { useTheme } from '../../theme';
|
|
|
|
import { themes } from '../../lib/constants';
|
|
|
|
import styles from './styles';
|
|
|
|
|
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
|
|
|
const { theme } = useTheme();
|
|
|
|
|
|
|
|
if (!isEdited) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
2022-05-26 17:10:24 +00:00
|
|
|
<View testID={testID} style={styles.leftIcons}>
|
2022-05-10 17:40:08 +00:00
|
|
|
<CustomIcon name='edit' size={16} color={themes[theme].auxiliaryText} />
|
|
|
|
</View>
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
export default Edited;
|