import { Fragment } from 'react' import { Dialog, Transition } from '@headlessui/react' import { CheckIcon } from '@heroicons/react/outline' import { MiniGrid } from '../mini-grid/MiniGrid' import { shareStatus } from '../../lib/share' type Props = { isOpen: boolean handleClose: () => void guesses: string[] handleShare: () => void } export const WinModal = ({ isOpen, handleClose, guesses, handleShare, }: Props) => { return (
{/* This element is to trick the browser into centering the modal contents. */}
You won!

Great job.

) }