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;
