generated from morewings/ts-global-state-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
53 lines (48 loc) · 1.06 KB
/
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
49
50
51
52
53
import type {Icon} from '@phosphor-icons/react';
import type {StaticImageData} from 'next/image';
export type Link = {
title: string;
id: string;
url: string;
icon?: Icon;
};
export type HeaderLink = Link & {
icon: Icon;
};
export enum Backgrounds {
fresh = 'fresh',
strict = 'strict',
bold = 'bold',
gradient = 'gradient',
rainbow = 'rainbow',
rastafari = 'rastafari',
sunset = 'sunset',
elegant = 'elegant',
selenium = 'selenium',
evening = 'evening',
optimistic = 'optimistic',
mesh = 'mesh',
}
export type VCard = {
firstName?: string;
middleName?: string;
lastName?: string;
organization?: string;
title?: string;
workPhone?: string;
birthday?: Date;
email?: string;
isOrganization?: boolean;
note?: string;
};
export type Config = {
title: string;
bio?: string;
background: keyof typeof Backgrounds;
gaId?: string;
shareTitle: string;
cardImage?: StaticImageData;
headerLinks?: HeaderLink[];
mainLinks: Link[];
vCard?: VCard;
};