aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/TaggPostFooter.tsx
blob: 024670a83e11d9f58e2a2d75f7839aca84ba5fe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import React from 'react';
import {StyleSheet, View} from 'react-native';
import {Text} from 'react-native-animatable';

interface TaggPostFooterProps {
  likes: number;
  handle: string;
  caption: string;
  date: string;
}
const TaggPostFooter: React.FC<TaggPostFooterProps> = ({
  likes,
  handle,
  caption,
  date,
}) => {
  return (
    <View>
      <View style={styles.container}>
        <Text style={styles.likeText}>{likes} likes</Text>
        <View style={styles.captionContainer}>
          <Text style={styles.handleText}>
            {handle}
            <Text style={styles.captionText}> {caption}</Text>
          </Text>
        </View>
        <Text style={styles.dateText}>{date}</Text>
      </View>
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flexDirection: 'column',
    padding: 10,
    paddingBottom: '10%',
  },
  captionContainer: {
    paddingVertical: 10,
  },
  likeText: {
    fontSize: 14,
    fontWeight: 'bold',
    color: 'white',
  },
  handleText: {
    fontSize: 14,
    fontWeight: 'bold',
    color: '#8FA9C2',
  },
  captionText: {
    fontSize: 14,
    fontWeight: 'bold',
    color: 'white',
    flexWrap: 'wrap',
  },
  dateText: {
    fontSize: 14,
    fontWeight: 'bold',
    color: '#8FA9C2',
  },
});

export default TaggPostFooter;