-
Notifications
You must be signed in to change notification settings - Fork 2
/
links-context.ts
52 lines (47 loc) · 1.82 KB
/
links-context.ts
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import React, { createContext, ElementType } from 'react';
export interface LinkItem {
url: string;
linkWrapper?: React.ComponentType<any>;
}
export interface Links {
home: LinkItem;
whyStorybook: LinkItem;
componentDriven: LinkItem;
guides: LinkItem;
tutorials: LinkItem;
changelog: LinkItem;
telemetry: LinkItem;
showcase: LinkItem;
projects: LinkItem;
componentGlossary: LinkItem;
integrations: LinkItem;
getInvolved: LinkItem;
blog: LinkItem;
hiring: LinkItem;
enterprise: LinkItem;
chromatic: LinkItem;
}
export const defaultLinks = {
home: { url: 'https://storybook.js.org/' },
whyStorybook: { url: 'https://storybook.js.org/docs/react/get-started/why-storybook' },
componentDriven: { url: 'https://componentdriven.org' },
guides: { url: 'https://storybook.js.org/docs' },
tutorials: { url: 'https://storybook.js.org/tutorials' },
changelog: { url: 'https://storybook.js.org/releases' },
telemetry: { url: 'https://storybook.js.org/telemetry' },
showcase: { url: 'https://storybook.js.org/showcase' },
projects: { url: 'https://storybook.js.org/showcase/projects' },
componentGlossary: { url: 'https://storybook.js.org/showcase/glossary' },
integrations: { url: 'https://storybook.js.org/integrations' },
getInvolved: { url: 'https://storybook.js.org/community' },
blog: { url: 'https://storybook.js.org/blog' },
hiring: { url: 'https://www.chromatic.com/company/jobs' },
enterprise: {
url: 'https://www.chromatic.com/enterprise?utm_source=storybook_website&utm_medium=global_nav&utm_campaign=storybook',
},
chromatic: {
url: 'https://www.chromatic.com/storybook?utm_source=storybook_website&utm_medium=global_nav&utm_campaign=storybook',
},
};
export const LinksContext = createContext<Links>(defaultLinks);
export const LinksContextProvider = LinksContext.Provider;