import { PublicKey } from "@solana/web3.js"; import { ICollective } from "@strata-foundation/spl-token-collective"; import { useAccount, UseAccountState } from "./useAccount"; import { useStrataSdks } from "./useStrataSdks"; export function useCollective( collective: PublicKey | undefined | null ): UseAccountState { const { tokenCollectiveSdk } = useStrataSdks(); return useAccount(collective, tokenCollectiveSdk?.collectiveDecoder, false); }