/** * Copyright (c) TonTech. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import type { GetNFTsData } from '@ton/appkit/queries'; import { useAddress } from '../../wallets/hooks/use-address'; import { useNftsByAddress } from './use-nfts-by-address'; import type { UseNFTsByAddressParameters, UseNFTsByAddressReturnType } from './use-nfts-by-address'; export type UseNFTsParameters = UseNFTsByAddressParameters; export type UseNFTsReturnType = UseNFTsByAddressReturnType; /** * Hook to get NFTs of the selected wallet */ export const useNfts = ( parameters: UseNFTsParameters = {}, ): UseNFTsReturnType => { const address = useAddress(); return useNftsByAddress({ ...parameters, address }); };