import { useGroupQuery } from "@hey/indexer"; import { H4, Spinner } from "@/components/Shared/UI"; import { useCreateGroupStore } from "./CreateGroup"; const Minting = () => { const { setScreen, transactionHash, setGroupAddress } = useCreateGroupStore(); useGroupQuery({ notifyOnNetworkStatusChange: true, onCompleted: (data) => { if (data.group) { setGroupAddress(data.group.address); setScreen("success"); } }, pollInterval: 1500, skip: !transactionHash, variables: { request: { txHash: transactionHash } } }); return (