2020-08-04 06:37:21 +02:00
|
|
|
<script lang="typescript">
|
2020-11-05 02:01:30 +01:00
|
|
|
import type { I18n } from "anki/i18n";
|
2020-11-01 05:26:58 +01:00
|
|
|
import type { TableDatum } from "./graph-helpers";
|
2020-08-04 06:37:21 +02:00
|
|
|
|
|
|
|
export let i18n: I18n;
|
|
|
|
export let tableData: TableDatum[];
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="centered">
|
|
|
|
<table dir={i18n.direction()}>
|
|
|
|
{#each tableData as { label, value }}
|
|
|
|
<tr>
|
|
|
|
<td class="align-end">{label}:</td>
|
|
|
|
<td class="align-start">{value}</td>
|
|
|
|
</tr>
|
|
|
|
{/each}
|
|
|
|
</table>
|
|
|
|
</div>
|