Something went wrong. Try again.
A turn timer for Magic
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536import { store, Preset } from "~/engine";
export default function TimeDialog() { let timeselect!: HTMLDialogElement; return ( <dialog ref={timeselect} id="timeselect" class="w60vh h30vh mx-auto mt-auto mb-auto rounded p5 bg-base color-text" > <form action={Preset} method="post" class="h-full flex flex-col justify-center items-center justify-center" > <input required autofocus name="time" type="number" min="0" value={Math.floor(store.player[0].time / 60)} class="flex flex-col w-6rem mb4 text-6xl" /> <button type="submit" class="text-4xl b-solid" onClick={() => timeselect.close()} > Set </button> </form> </dialog> );}