From 5152dce7b81a382ae7797e8c2656ab043b352e88 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Wed, 21 Apr 2021 16:05:08 +0200 Subject: [PATCH] Add WithShortcut --- ts/editor-toolbar/WithShortcut.d.ts | 7 +++++ ts/editor-toolbar/WithShortcut.svelte | 37 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 ts/editor-toolbar/WithShortcut.d.ts create mode 100644 ts/editor-toolbar/WithShortcut.svelte diff --git a/ts/editor-toolbar/WithShortcut.d.ts b/ts/editor-toolbar/WithShortcut.d.ts new file mode 100644 index 000000000..2792bb7ae --- /dev/null +++ b/ts/editor-toolbar/WithShortcut.d.ts @@ -0,0 +1,7 @@ +// Copyright: Ankitects Pty Ltd and contributors +// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html +import type { ToolbarItem } from "./types"; + +export interface WithShortcutProps { + button: ToolbarItem; +} diff --git a/ts/editor-toolbar/WithShortcut.svelte b/ts/editor-toolbar/WithShortcut.svelte new file mode 100644 index 000000000..f3293e761 --- /dev/null +++ b/ts/editor-toolbar/WithShortcut.svelte @@ -0,0 +1,37 @@ + + + +