-
Notifications
You must be signed in to change notification settings - Fork 8
/
types.ts
48 lines (40 loc) 路 836 Bytes
/
types.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
import { Yoco } from '@3yourmind/yoco'
import { SpecifyRequiredProps } from '../types/utilities'
export namespace KottiNavbar {
export type QuickLink = {
link: string
title: string
}
export type SectionLink = {
icon: Yoco.Icon
isActive: boolean
title: string
to: unknown
}
export type Section = {
title: string | null
links: SectionLink[]
}
export enum Theme {
DARK = 'dark',
LIGHT = 'light',
REVERSE = 'reverse',
}
export type PropsInternal = {
isNarrow: boolean
logoUrl: string
notification: Record<string, unknown> | null
quickLinks: QuickLink[]
sections: Section[]
theme: Theme | null
}
export type Props = SpecifyRequiredProps<
PropsInternal,
'logoUrl' | 'sections'
>
export type Translations = {
menuCollapse: string
menuExpand: string
quickLinksTitle: string
}
}