import { Dispatch } from 'redux'; import { AuthIdentity } from '@dcl/crypto'; import { ChainId } from '@dcl/schemas/dist/dapps/chain-id'; import { NavbarProps as NavbarComponentProps } from 'decentraland-ui/dist/components/Navbar/Navbar.types'; import { NavbarProps as NavbarComponentProps2 } from 'decentraland-ui2'; import { getCredits } from '../../modules/credits/selectors'; import { SwitchNetworkRequestAction, disconnectWalletRequest, switchNetworkRequest } from '../../modules/wallet/actions'; export type NavbarProps = NavbarComponentProps & { withChainSelector?: boolean; chainId?: ChainId; appChainId: ChainId; docsUrl?: string; enablePartialSupportAlert?: boolean; isSwitchingNetwork?: boolean; withNotifications?: boolean; identity?: AuthIdentity; locale: string; walletError: string | null; onSwitchNetwork: typeof switchNetworkRequest; onSignOut: typeof disconnectWalletRequest; onSignIn: () => void; }; export type NavbarProps2 = Omit & { withChainSelector?: boolean; chainId?: ChainId; appChainId: ChainId; isSwitchingNetwork?: boolean; withNotifications?: boolean; withCredits?: boolean; identity?: AuthIdentity; locale: string; walletError: string | null; credits?: ReturnType; onSwitchNetwork: typeof switchNetworkRequest; onSignOut: typeof disconnectWalletRequest; onSignIn: () => void; }; export type MapStateProps = Pick & Pick; export type MapDispatchProps = Pick; export type MapDispatch = Dispatch;