aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/react-shared/src/types.ts')
-rw-r--r--packages/react-shared/src/types.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/react-shared/src/types.ts b/packages/react-shared/src/types.ts
index 88fadcc09..b3dd4045b 100644
--- a/packages/react-shared/src/types.ts
+++ b/packages/react-shared/src/types.ts
@@ -23,3 +23,16 @@ export enum Networks {
Ropsten = 'Ropsten',
Rinkeby = 'Rinkeby',
}
+
+export enum LinkType {
+ External = 'EXTERNAL',
+ ReactScroll = 'REACT_SCROLL',
+ ReactRoute = 'REACT_ROUTE',
+}
+
+export interface ALink {
+ title: string;
+ to: string;
+ shouldOpenInNewTab?: boolean;
+ type?: LinkType;
+}