import AppText from 'components/AppText';
import Navbar from 'components/Navbar';
import Navigation from 'components/Navigation';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Image, ScrollView, StyleSheet, View } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';

const Uncodified = () => {
  const { t } = useTranslation();
  return (
    <SafeAreaView style={{ flex: 1 }}>
      <View style={styles.container}>
        <Navbar />
        <ScrollView style={{ marginTop: 20 }}>
          <View style={styles.card}>
            <Image
              src="https://jebnalak.com/cdn/shop/products/Untitled-2021-09-12T112500.494_370x370.jpg?v=1631435110"
              width={200}
              height={200}
              style={styles.image}
            />
            <View style={styles.textCard}>
              <AppText style={styles.title}>{t('Trek ID')}:</AppText>
              <AppText style={styles.text}>YT12345678</AppText>
            </View>
          </View>
        </ScrollView>
        <Navigation />
      </View>
    </SafeAreaView>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  card: {
    backgroundColor: '#FFFFFF',
    padding: 20,
    borderRadius: 8,
    shadowColor: '#000',
    shadowOffset: { width: 0, height: 2 },
    shadowOpacity: 0.1,
    shadowRadius: 4,
    elevation: 4,
    marginBottom: 20,
    width: '95%',
    margin: 'auto',
  },
  image: {
    width: '100%',
    height: 200,
    objectFit: 'contain',
  },
  textCard: {
    marginTop: 10,
    display: 'flex',
    flexDirection: 'row',
    justifyContent: 'space-between',
  },
  title: {
    fontSize: 16,
    fontWeight: '500',
  },
  text: {
    fontSize: 14,
    fontWeight: '500',
  },
});

export default Uncodified;
