docs/.vitepress/theme/navActions.ts
54 lines · 1056 bytes
1export type NavBreakpoint = 'sm' | 'md' | 'lg' | 'xl'
2
3interface NavActionBase {
4 hideBelow?: NavBreakpoint
5}
6
7export interface NavSearchAction extends NavActionBase {
8 type: 'search'
9}
10
11export interface NavAppearanceAction extends NavActionBase {
12 type: 'appearance'
13}
14
15export interface NavSettingsAction extends NavActionBase {
16 type: 'settings'
17}
18
19export interface NavBookmarksAction extends NavActionBase {
20 type: 'bookmarks'
21}
22
23export interface NavLinkAction extends NavActionBase {
24 type: 'link'
25 icon: string
26 link: string
27 label: string
28}
29
30export type NavAction =
31 | NavSearchAction
32 | NavAppearanceAction
33 | NavSettingsAction
34 | NavBookmarksAction
35 | NavLinkAction
36
37export const navActions: NavAction[] = [
38 { type: 'appearance' },
39 { type: 'search' },
40 { type: 'bookmarks' },
41 { type: 'settings' },
42 {
43 type: 'link',
44 icon: 'github',
45 link: 'https://github.com/wotakumoe/Wotaku',
46 label: 'GitHub'
47 },
48 {
49 type: 'link',
50 icon: 'discord',
51 link: 'https://discord.gg/vShRGx8ZBC',
52 label: 'Discord'
53 }
54]