Anki/ts/routes/reviewer/reviewer-bottom/AnswerButton.svelte
Luc Mcgrady f1c50b1ca2
./check
2025-10-02 18:00:22 +01:00

27 lines
550 B
Svelte

<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="ts">
import { bridgeCommand } from "@tslib/bridgecommand";
import type { AnswerButtonInfo } from "./types";
export let info: AnswerButtonInfo;
</script>
<span>
{#if info.due}
{info.due}
{:else}
&nbsp;
{/if}
</span>
<button on:click={() => bridgeCommand(`ease${info.i}`)}>
{info.label}
</button>
<style>
span {
text-align: center;
}
</style>