docs/.vitepress/theme/navActions.ts

9c6588973e856dbc27ebb283f0d963c792faa8df
wotaku/docs/.vitepress/theme/navActions.ts history · blame · raw

48 lines · 925 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 NavLinkAction extends NavActionBase {
20  type: 'link'
21  icon: string
22  link: string
23  label: string
24}
25
26export type NavAction =
27  | NavSearchAction
28  | NavAppearanceAction
29  | NavSettingsAction
30  | NavLinkAction
31
32export const navActions: NavAction[] = [
33  { type: 'search' },
34  { type: 'appearance' },
35  {
36    type: 'link',
37    icon: 'github',
38    link: 'https://github.com/wotakumoe/Wotaku',
39    label: 'GitHub'
40  },
41  {
42    type: 'link',
43    icon: 'discord',
44    link: 'https://discord.gg/vShRGx8ZBC',
45    label: 'Discord'
46  },
47  { type: 'settings' }
48]