16 lines
424 B
TypeScript
16 lines
424 B
TypeScript
import React from 'react';
|
|
|
|
import { CustomIcon } from '../../../CustomIcon';
|
|
import styles from '../../styles';
|
|
import { useTheme } from '../../../../theme';
|
|
|
|
const Pinned = React.memo(({ pinned }: { pinned?: boolean }) => {
|
|
const { colors } = useTheme();
|
|
if (pinned) {
|
|
return <CustomIcon name='pin' color={colors.auxiliaryTintColor} size={16} style={styles.rightIcons} />;
|
|
}
|
|
return null;
|
|
});
|
|
|
|
export default Pinned;
|