// src/navigation/AppNavigator.tsx
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
import HomeScreen from "../screens/HomeScreen";
import ProductListBig from "../screens/product/ProductListBig";
import ProductList from "../screens/product/ProductList";
import ProductDetail from "../screens/product/ProductDetail";
import Buildpc from "../screens/buildpc/Buildpc";
import CompareBuildpc from "../screens/buildpc/CompareBuildpc";
import BuildpcDeail from "../screens/buildpc/BuildpcDetail";

const Stack = createStackNavigator();

const AppNavigator: React.FC = () => {
  return (
    <Stack.Navigator
      initialRouteName="homepage"
      screenOptions={{ headerShown: false }}
    >
      <Stack.Screen name="homepage" component={HomeScreen} />
      <Stack.Screen name="productlist" component={ProductListBig} />
      <Stack.Screen name="productlistmain" component={ProductList} />
      <Stack.Screen name="productdetail" component={ProductDetail} />
      <Stack.Screen name="buildpc" component={Buildpc} />
      <Stack.Screen name="comparebuildpc" component={CompareBuildpc} />
      <Stack.Screen name="buildpcdetail" component={BuildpcDeail} />
    </Stack.Navigator>
  );
};

export default AppNavigator;
