import { CardStyleInterpolators, createStackNavigator } from '@react-navigation/stack';
import React from 'react';
import { useTranslation } from 'react-i18next';
import HeaderRightHome from '../components/buttons/HeaderHome';
import { useTheme } from '../contexts/theme';
import Connection from '../screens/Connection';
import CredentialOffer from '../screens/CredentialOffer';
import ProofRequest from '../screens/ProofRequest';
import { Screens } from '../types/navigators';
import { useDefaultStackOptions } from './defaultStackOptions';
import OpenIDCredentialDetails from '../modules/openid/screens/OpenIDCredentialOffer';
import OpenIDProofPresentation from '../modules/openid/screens/OpenIDProofPresentation';
const DeliveryStack = () => {
  const Stack = createStackNavigator();
  const {
    t
  } = useTranslation();
  const theme = useTheme();
  const defaultStackOptions = useDefaultStackOptions(theme);
  return /*#__PURE__*/React.createElement(Stack.Navigator, {
    initialRouteName: Screens.Connection,
    screenOptions: {
      ...defaultStackOptions,
      cardStyleInterpolator: CardStyleInterpolators.forVerticalIOS,
      headerShown: true,
      presentation: 'modal',
      headerLeft: () => null,
      headerRight: () => /*#__PURE__*/React.createElement(HeaderRightHome, null)
    }
  }, /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.Connection,
    component: Connection,
    options: {
      ...defaultStackOptions
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.ProofRequest,
    component: ProofRequest,
    options: {
      title: t('Screens.ProofRequest')
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.CredentialOffer,
    component: CredentialOffer,
    options: {
      title: t('Screens.CredentialOffer')
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.OpenIDCredentialDetails,
    component: OpenIDCredentialDetails,
    options: {
      title: t('Screens.CredentialOffer')
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.OpenIDProofPresentation,
    component: OpenIDProofPresentation,
    options: {
      title: t('Screens.ProofRequest')
    }
  }));
};
export default DeliveryStack;
//# sourceMappingURL=DeliveryStack.js.map