import { 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 Chat from '../screens/Chat';
import ContactDetails from '../screens/ContactDetails';
import CredentialDetails from '../screens/CredentialDetails';
import CredentialOffer from '../screens/CredentialOffer';
import ListContacts from '../screens/ListContacts';
import ProofDetails from '../screens/ProofDetails';
import ProofRequest from '../screens/ProofRequest';
import RenameContact from '../screens/RenameContact';
import WhatAreContacts from '../screens/WhatAreContacts';
import { Screens } from '../types/navigators';
import { createDefaultStackOptions } from './defaultStackOptions';
const ContactStack = () => {
  const Stack = createStackNavigator();
  const theme = useTheme();
  const {
    t
  } = useTranslation();
  const defaultStackOptions = createDefaultStackOptions(theme);
  return /*#__PURE__*/React.createElement(Stack.Navigator, {
    screenOptions: {
      ...defaultStackOptions
    }
  }, /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.Contacts,
    component: ListContacts,
    options: {
      title: t('Screens.Contacts')
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.ContactDetails,
    component: ContactDetails,
    options: {
      title: t('Screens.ContactDetails')
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.RenameContact,
    component: RenameContact,
    options: {
      title: t('Screens.RenameContact')
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.Chat,
    component: Chat
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.WhatAreContacts,
    component: WhatAreContacts,
    options: {
      title: ''
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.CredentialDetails,
    component: CredentialDetails,
    options: {
      title: t('Screens.CredentialDetails')
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.CredentialOffer,
    component: CredentialOffer,
    options: {
      title: t('Screens.CredentialOffer')
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.ProofDetails,
    component: ProofDetails,
    options: () => ({
      title: '',
      headerRight: () => /*#__PURE__*/React.createElement(HeaderRightHome, null)
    })
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: Screens.ProofRequest,
    component: ProofRequest,
    options: {
      title: t('Screens.ProofRequest')
    }
  }));
};
export default ContactStack;
//# sourceMappingURL=ContactStack.js.map