mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
9 lines
371 B
TypeScript
9 lines
371 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
import { getUndoStatus } from "@generated/backend";
|
|
import type { PageLoad } from "./$types";
|
|
|
|
export const load = (async () => {
|
|
const initialUndoStatus = await getUndoStatus({});
|
|
return { initialUndoStatus };
|
|
}) satisfies PageLoad;
|