/* 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 { LinkTabs } from 'components/LinkTabs' import { snapshotLinkTabs } from 'components/LinkTabs.data' import type { NextPage } from 'next' import { NextSeo } from 'next-seo' import { 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' export interface ChainDataType { type: 'active-users' endpoint: string } const Chain: NextPage = () => { const activeUsersEndpoint = `https://metabase.constellations.zone/public/question/cc17fce5-3cc4-4b03-b100-81bdf982f391.json` const [chainDataType, setChainDataType] = useState({ type: 'active-users', endpoint: activeUsersEndpoint, }) const [isLoading, setIsLoading] = useState(false) 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() } return (
Chain Snapshot Type
) } export default withMetadata(Chain, { center: false })