import 'package:get/get.dart';
import 'package:sigap/navigation_menu.dart';
import 'package:sigap/src/features/auth/presentasion/pages/email-verification/email_verification_screen.dart';
import 'package:sigap/src/features/auth/presentasion/pages/forgot-password/forgot_password.dart';
import 'package:sigap/src/features/auth/presentasion/pages/signin/signin_screen.dart';
import 'package:sigap/src/features/auth/presentasion/pages/signup/main/registraion_form_screen.dart';
import 'package:sigap/src/features/auth/presentasion/pages/signup/main/signup_with_role_screen.dart';
import 'package:sigap/src/features/auth/presentasion/pages/signup/step/selfie-verification/liveness_detection_screen.dart';
import 'package:sigap/src/features/onboarding/presentasion/pages/check-location/check_location.dart';
import 'package:sigap/src/features/onboarding/presentasion/pages/location-warning/location_warning_screen.dart';
import 'package:sigap/src/features/onboarding/presentasion/pages/onboarding/onboarding_screen.dart';
import 'package:sigap/src/features/onboarding/presentasion/pages/role-selection/role_signup_pageview.dart';
import 'package:sigap/src/features/onboarding/presentasion/pages/welcome/welcome_screen.dart';
import 'package:sigap/src/features/personalization/presentasion/pages/profile/profile_screen.dart';
import 'package:sigap/src/features/personalization/presentasion/pages/settings/setting_screen.dart';
import 'package:sigap/src/utils/constants/app_routes.dart';

class AppPages {
  static const initialPage = AppRoutes.panicButton;

  static final routes = [
    // Onboarding
    GetPage(name: AppRoutes.onboarding, page: () => const OnboardingScreen()),

    GetPage(name: AppRoutes.welcome, page: () => const WelcomeScreen()),

    // Auth
    GetPage(
      name: AppRoutes.roleSelection,
      page: () => const RoleSignupPageView(),
    ),

    GetPage(
      name: AppRoutes.registrationForm,
      page: () => const FormRegistrationScreen(),
    ),

    GetPage(name: AppRoutes.signIn, page: () => const SignInScreen()),

    GetPage(
      name: AppRoutes.signupWithRole,
      page: () => const SignupWithRoleScreen(),
    ),

    GetPage(
      name: AppRoutes.emailVerification,
      page: () => const EmailVerificationScreen(),
    ),

    GetPage(
      name: AppRoutes.forgotPassword,
      page: () => const ForgotPasswordScreen(),
    ),

    GetPage(
      name: AppRoutes.checkLocation,
      page: () => const CheckLocationScreen(),
    ),

    GetPage(
      name: AppRoutes.locationWarning,
      page: () => const LocationWarningScreen(),
    ),

    GetPage(name: AppRoutes.navigationMenu, page: () => const NavigationMenu()),

    GetPage(
      name: AppRoutes.livenessDetection,
      page: () => const LivenessDetectionPage(),
    ),

    // Personalization
    GetPage(
      name: AppRoutes.settings,
      page: () => const SettingsScreen(),
      preventDuplicates: false,
      
    ),

    GetPage(
      name: AppRoutes.profile,
      page: () => const ProfileScreen(isCurrentUser: true),
    ),

    
     
  ];
}
