Fakultas Ilmu Komputer UI

index.tsx 610 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React, { FC } from 'react';
import { TouchableOpacity, Text } from 'react-native';

import { styles } from './styles';
import { Props } from './types';
import { typographyStyles } from 'styles';
import { Icon } from 'react-native-elements';

const DietProfileButton: FC<Props> = ({ onPress, testID }) => (
  <TouchableOpacity
    onPress={onPress}
    testID={testID}
    style={styles.containerStyle}>
    <Icon style={styles.img} name="user" type="feather" />
    <Text style={[typographyStyles.bodyMedium, styles.titleStyle]}>Profil</Text>
  </TouchableOpacity>
);

export default DietProfileButton;