import Link from 'next/link' import { useEffect, useState } from 'react' import { Header } from '../../components/header' import { useUser } from '../../hooks/use-user' import { Contract, deleteContract, listContracts, setContract as pushContract, } from '../../lib/firebase/contracts' function ContractCard(props: { contract: Contract }) { const { contract } = props return (
{contract.question}
{contract.outcomeType}
{contract.id}
{contract.description}
Created on{' '}