/* eslint-disable prettier/prettier */
import React from 'react';
import {Dimensions, Image, StyleSheet, View} from 'react-native';
import AppText from '../../../../components/AppText';
import {IMAGES} from '../../../../values/images';
const windowWidth = Dimensions.get('window').width;
const Quotation = ({quotation}) => {
  return (
    <View style={styles.quotationContainer}>
      <View style={styles.quotationContent}>
        <AppText style={styles.textQuote}>
          {quotation?.content
            ? quotation?.content
            : `If you cannot do greats things, do small things in a great way`}
        </AppText>
        <AppText>
          {quotation?.name ? '-' + quotation?.name : `-Napoleon Hill`}
        </AppText>
      </View>
      <Image style={styles.bgQuote} source={IMAGES.BgQuote} />
    </View>
  );
};
const styles = StyleSheet.create({
  quotationContainer: {
    borderWidth: 1,
    borderColor: 'white',
    backgroundColor: 'white',
    marginTop: 10,
    paddingTop: 30,
    borderRadius: 5,
  },
  quotationContent: {
    justifyContent: 'center',
    alignItems: 'center',
    padding: 10,
  },
  bgQuote: {
    width: windowWidth - 10,
    height: 120,
    resizeMode: 'contain',
  },
  textQuote: {
    color: '#084884',
    fontSize: 15,
    textAlign: 'right',
  },
});
export default Quotation;
