aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/route.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-11-06 11:54:45 -0300
committerSebastian <sebasjm@gmail.com>2023-11-06 11:54:45 -0300
commit4ee903eb5e639fa0e122a689cc431e8f18ca1197 (patch)
treed2cf28bcddb03f650fe7913ff2db8e48145740c4 /packages/aml-backoffice-ui/src/route.ts
parent3d1ab082d4a66df08fcb468d04198c055d00b8c5 (diff)
downloadwallet-core-4ee903eb5e639fa0e122a689cc431e8f18ca1197.tar.xz
aml ui
Diffstat (limited to 'packages/aml-backoffice-ui/src/route.ts')
-rw-r--r--packages/aml-backoffice-ui/src/route.ts17
1 files changed, 11 insertions, 6 deletions
diff --git a/packages/aml-backoffice-ui/src/route.ts b/packages/aml-backoffice-ui/src/route.ts
index d54f9be83..4c3331668 100644
--- a/packages/aml-backoffice-ui/src/route.ts
+++ b/packages/aml-backoffice-ui/src/route.ts
@@ -1,3 +1,4 @@
+import { TranslatedString } from "@gnu-taler/taler-util";
import { createHashHistory } from "history";
import { h as create, VNode } from "preact";
import { useEffect, useState } from "preact/hooks";
@@ -45,14 +46,18 @@ export function pageDefinition<T extends Record<string, string>>(
export type PageEntry<T = unknown> = T extends Record<string, string>
? {
- url: PageDefinition<T>;
- view: (props: T) => VNode;
- }
+ url: PageDefinition<T>;
+ view: (props: T) => VNode;
+ name: TranslatedString,
+ icon?: string,
+ }
: T extends unknown
? {
- url: string;
- view: (props: {}) => VNode;
- }
+ url: string;
+ view: (props: {}) => VNode;
+ name: TranslatedString,
+ icon?: string,
+ }
: never;
export function Router({