import React from 'react' import { useRouter } from 'next/router' import { useContract } from '../../hooks/use-contract' import { Header } from '../../components/header' import { Row } from '../../components/layout/row' import { ContractOverview } from '../../components/contract-overview' import { BetPanel } from '../../components/bet-panel' export default function ContractPage() { const router = useRouter() const { contractId } = router.query as { contractId: string } const contract = useContract(contractId) if (contract === 'loading') { return
} if (!contract) { return