/* This example requires Tailwind CSS v2.0+ */ import { Fragment, useState } from 'react' import { Dialog, Transition } from '@headlessui/react' import { CheckIcon } from '@heroicons/react/outline' import { Contract } from '../lib/firebase/contracts' import { BetPanel } from './bet-panel' // Inline version of a bet panel. Opens BetPanel in a new modal. export default function BetRow(props: { contract: Contract }) { // Button to open the modal const [open, setOpen] = useState(false) return ( <> ) } export function Modal(props: { children: React.ReactNode open: boolean setOpen: (open: boolean) => void }) { const { children, open, setOpen } = props return (
{/* This element is to trick the browser into centering the modal contents. */}
{children}
) }