/* eslint-disable eslint-comments/disable-enable-pair */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/restrict-template-expressions */ /* eslint-disable tailwindcss/classnames-order */ import { Button } from 'components/Button' import { ContractPageHeader } from 'components/ContractPageHeader' import { AddressInput } from 'components/forms/FormInput' import { useInputState } from 'components/forms/FormInput.hooks' import { LinkTabs } from 'components/LinkTabs' import { snapshotLinkTabs } from 'components/LinkTabs.data' import { SelectCollection } from 'components/SelectCollection' import type { NextPage } from 'next' import { NextSeo } from 'next-seo' import { useEffect, useState } from 'react' import toast from 'react-hot-toast' // import Brand from 'public/brand/brand.svg' import { withMetadata } from 'utils/layout' import { links } from 'utils/links' const Holders: NextPage = () => { const [collectionAddress, setCollectionAddress] = useState('') const collectionAddressState = useInputState({ id: 'collection-address', name: 'collection-address', title: 'Collection Address', defaultValue: '', }) const [includeStaked, setIncludeStaked] = useState(true) const [includeListed, setIncludeListed] = useState(true) const [includeInPool, setIncludeInPool] = useState(true) const [exportIndividualTokens, setExportIndividualTokens] = useState(false) const [isLoading, setIsLoading] = useState(false) const snapshotEndpoint = `https://metabase.constellations.zone/api/public/card/4cf9550e-5eb7-4fe7-bd3b-dc33229f53dc/query/json?parameters=%5B%7B%22type%22%3A%22category%22%2C%22value%22%3A%22${collectionAddressState.value}%22%2C%22id%22%3A%22cb34b7a8-70cf-ba86-8d9c-360b5b2fedd3%22%2C%22target%22%3A%5B%22variable%22%2C%5B%22template-tag%22%2C%22collection_addr%22%5D%5D%7D%5D` const download = (content: string, fileName: string, contentType: string) => { const a = document.createElement('a') const file = new Blob([content], { type: contentType }) a.href = URL.createObjectURL(file) a.download = fileName a.click() } useEffect(() => { collectionAddressState.onChange(collectionAddress) }, [collectionAddress]) return (

Snapshot Options

) } export default withMetadata(Holders, { center: false })