docs/.vitepress/theme/navActions.ts

60 lines · 1199 bytes

10 symbols in this file
 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 NavAnnouncementAction extends NavActionBase {
24  type: 'announcement'
25}
26
27export interface NavLinkAction extends NavActionBase {
28  type: 'link'
29  icon: string
30  link: string
31  label: string
32}
33
34export type NavAction =
35  | NavSearchAction
36  | NavAppearanceAction
37  | NavSettingsAction
38  | NavBookmarksAction
39  | NavAnnouncementAction
40  | NavLinkAction
41
42export const navActions: NavAction[] = [
43  { type: 'appearance' },
44  { type: 'search' },
45  { type: 'bookmarks' },
46  { type: 'announcement' },
47  { type: 'settings' },
48  {
49    type: 'link',
50    icon: 'github',
51    link: 'https://github.com/wotakumoe/Wotaku',
52    label: 'GitHub'
53  },
54  {
55    type: 'link',
56    icon: 'discord',
57    link: 'https://discord.gg/vShRGx8ZBC',
58    label: 'Discord'
59  }
60]