aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src/types.ts
blob: daae7b115352f6d108451f6e5372d3c65ce4faa2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export interface Styles {
    [name: string]: React.CSSProperties;
}

export enum HeaderSizes {
    H1 = 'h1',
    H2 = 'h2',
    H3 = 'h3',
}

export enum EtherscanLinkSuffixes {
    Address = 'address',
    Tx = 'tx',
}

export enum Networks {
    Mainnet = 'Mainnet',
    Kovan = 'Kovan',
    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;
}