import * as React from 'react';
import Login from '../screens/Login';
import InitAppScreen from '../screens/InitAppScreen';

// 详情
import MerchantDetailScreen from '../screens/Detail/MerchantDetailScreen';
import MerchantDetailComment from '../screens/Detail/Comment';
import MerchantDetailMerchant from '../screens/Detail/Merchant';
import SubmitScreen from '../screens/Detail/SubmitScreen';
import OrderCoupon from '../screens/userCoupon/OrderCouponScreen';
import OrderMessage from '../screens/Order/OrderMessageScreen';
import ReportBusinessScreen from '../screens/Detail/ReportBusinessScreen';
import GoodsDetailScreen from '../screens/Detail/GoodsDetailScreen';

// 订单
import OrderDetail from '../screens/Order/OrderDetailScreen';
import Complaint from '../screens/Order/ComplaintScreen';
import ComplaintNext from '../screens/Order/ComplaintNextScreen';
import EvaluateScreen from '../screens/Order/EvaluateScreen';
import RewardRider from '../screens/Order/RewardRiderScreen';
import ApplayCancel from '../screens/Order/ApplayCancelScreen';
import PayOrderScreen from '../screens/Pay/PayOrderScreen';
import OrderDetailListScreen from '../screens/Order/OrderDetailListScreen';

// 用户
import Setting from '../screens/User/SettingScreen';
import Coupon from '../screens/userCoupon/CouponScreen';
import Collection from '../screens/User/CollectionScreen';
import Cooperation from '../screens/User/CooperationScreen';
import Apply from '../screens/User/ApplyScreen';
import RiderApply from '../screens/User/RiderApplyScreen';
import MerchatApply from '../screens/User/MerchatApplyScreen';
import CompanyApply from '../screens/User/CompanyApplyScreen';
import FeedBack from '../screens/User/FeedBackScreen';
import AppSetting from '../screens/User/AppSettingScreen';
import Rule from '../screens/User/RuleScreen';

// 地址
import EditAddress from '../screens/Address/EditAddressScreen';
import AddressScreen from '../screens/Address/AddressScreen';

// 首页选地址
import HomeAddress from '../screens/Main/AddressScreen';
// 首页新店推荐
import MerchantsList from '../screens/Main/MerchantsListScreen';
import Search from '../screens/Main/SearchScreen';
// 搜索地图
import SearchMap from '../screens/Map/SearchMapScreen';

// 搜索地图
import MapScreen from '../screens/Map/MapScreen';
// 地图标记
import MapMarkScreen from '../screens/Map/MapMarkScreen';

// 聊天页面
import ChatScreen from '../chat/ChatScreen.tsx';

import HomeCategoryScreen from '../screens/Main/HomeCategoryScreen.tsx';

export default function BasicScreens(Screen) {
  return (
    <>
      <Screen
        name="InitApp"
        options={{
          headerShown: false,
        }}
        component={InitAppScreen}
      />
      {/* 登录路由 */}
      {Login(Screen)}
      {/* 详情页 */}
      <Screen
        name="MerchantDetail"
        initialParams={{ merchantId: 189 }}
        component={MerchantDetailScreen}
      />
      <Screen name="MerchantDetailComment" component={MerchantDetailComment} />
      <Screen
        name="MerchantDetailMerchant"
        component={MerchantDetailMerchant}
      />
      {/* 举报商家 */}
      <Screen name="ReportBusiness" component={ReportBusinessScreen} />
      {/* 商品详情 */}
      <Screen
        name="GoodsDetail"
        component={GoodsDetailScreen}
        initialParams={{ goodsId: 214 }}
      />
      {/* 提交订单 */}
      <Screen name="Submit" component={SubmitScreen} />
      {/* 订单优惠券 */}
      <Screen name="OrderCoupon" component={OrderCoupon} />
      {/* 订单备注 */}
      <Screen name="OrderMessage" component={OrderMessage} />
      {/* ****************************订单******************************** */}
      {/* 订单详情 */}
      <Screen
        name="OrderDetail"
        initialParams={{ orderId: 1359 }}
        component={OrderDetail}
      />
      {/* 订单详情 */}
      <Screen
        name="PayOrder"
        initialParams={{ orderId: 2307 }}
        component={PayOrderScreen}
      />
      <Screen name="OrderDetailList" component={OrderDetailListScreen} />
      {/* 投诉 */}
      <Screen name="Complaint" component={Complaint} />
      {/* 投诉 2 */}
      <Screen name="ComplaintNext" component={ComplaintNext} />
      {/* 评论 */}
      <Screen
        name="Evaluate"
        component={EvaluateScreen}
        initialParams={{ orderId: 1948 }}
      />
      {/* 打赏骑手 */}
      <Screen name="RewardRider" component={RewardRider} />
      {/* 取消订单 */}
      <Screen
        name="ApplayCancel"
        component={ApplayCancel}
        initialParams={{ orderId: 2029 }}
      />
      {/* *************************用户*********************************** */}
      {/* 设置 */}
      <Screen name="Setting" component={Setting} />
      {/* 优惠券 */}
      <Screen name="Coupon" component={Coupon} />
      {/* 我的收藏 */}
      <Screen name="Collection" component={Collection} />
      {/* 合作申请 */}
      <Screen name="Cooperation" component={Cooperation} />
      {/* 申请 */}
      <Screen name="Apply" component={Apply} />
      {/* 申请 */}
      <Screen name="RiderApply" component={RiderApply} />
      {/* 申请 */}
      <Screen name="MerchatApply" component={MerchatApply} />
      {/* 申请 */}
      <Screen name="CompanyApply" component={CompanyApply} />
      {/* 申请 */}
      <Screen name="FeedBack" component={FeedBack} />
      {/* app设置 */}
      <Screen name="AppSetting" component={AppSetting} />
      {/* 隐私政策 */}
      <Screen name="Rule" component={Rule} />
      <Screen name="Address" component={AddressScreen} />
      {/* 编辑address */}
      <Screen name="EditAddress" component={EditAddress} />
      <Screen name="HomeAddress" component={HomeAddress} />
      {/* 新店推荐 */}
      <Screen name="MerchantsList" component={MerchantsList} />
      <Screen name="Search" component={Search} />
      <Screen name="SearchMap" component={SearchMap} />
      <Screen name="MapScreen" component={MapScreen} />
      <Screen name="MapMarkScreen" component={MapMarkScreen} />
      <Screen name="Chat" component={ChatScreen} />
      <Screen
        name="HomeCategory"
        component={HomeCategoryScreen}
        initialParams={{ categoryId: 0 }}
      />
    </>
  );
}
