// Copyright (c) Mysten Labs, Inc. // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 import type { WalletAccount } from '@iota/wallet-standard'; import { useWalletStore } from './useWalletStore.js'; /** * Retrieves the wallet account that is currently selected, if one exists. */ export function useCurrentAccount(): WalletAccount | null { return useWalletStore((state) => state.currentAccount); }