mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
18 lines
516 B
Svelte
18 lines
516 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 { importJsonFile } from "@generated/backend";
|
|
|
|
import ImportPage, { type Importer } from "../ImportPage.svelte";
|
|
import type { PageData } from "./$types";
|
|
|
|
export let data: PageData;
|
|
|
|
const importer: Importer = {
|
|
doImport: () => importJsonFile({ val: data.path }, {}),
|
|
};
|
|
</script>
|
|
|
|
<ImportPage path={data.path} {importer} />
|