import React from 'react';
import { View, Text } from 'react-native';
import { getStyles } from './orderConfirmedScreen.styles';
import { Header, PrimaryButton } from '@components';
import { useAppTheme } from '@theme';

export const OrderConfirmedScreen: React.FC = () => {
  const { colors } = useAppTheme();
  const styles = getStyles(colors);

  return (
    <View style={styles.container}>
      <Header title="Order Confirmed" onBack={() => {}} />
      <View style={styles.content}>
        <Text style={styles.icon}>✅</Text>
        <Text style={styles.title}>Order Confirmed!</Text>
        <Text style={styles.subtitle}>
          Your order has been placed successfully
        </Text>
        <View style={styles.orderCard}>
          <Text style={styles.orderId}>Order ID: ORD-123456</Text>
          <Text style={styles.orderEta}>Estimated delivery: 25-30 min</Text>
        </View>
      </View>
      <View style={styles.footer}>
        <PrimaryButton title="View Tracking" onPress={() => {}} />
      </View>
    </View>
  );
};
