<script lang="ts">
    import type { SimpleQuestion } from "$lib/games/games";
    import Textfield from "$lib/Textfield.svelte";

    interface Props {
        question: SimpleQuestion;
    }

    let { question }: Props = $props();
</script>

<div>
    <Textfield bind:value={question.data.question}></Textfield>
    <Textfield bind:value={question.data.answer}></Textfield>
</div>
