Anki/ts/routes/reviewer-bottom/AnswerButton.svelte
Luc Mcgrady 860a8b4295
./check
2025-08-26 02:08:24 +01:00

14 lines
397 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>
<button on:click={() => bridgeCommand(`ease${info.i}`)}>
{info.label}
</button>