-
Notifications
You must be signed in to change notification settings - Fork 17
/
config.ts
41 lines (34 loc) · 820 Bytes
/
config.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
import type { AvailabilitySlotsMap } from "./lib/types"
export const ALLOWED_DURATIONS = [15, 30, 60]
export const DEFAULT_DURATION = 30
export const CALENDARS_TO_CHECK = ["primary"]
export const SLOT_PADDING = 0
export const OWNER_TIMEZONE = "America/Los_Angeles"
export const LEAD_TIME = 0
const DEFAULT_WORKDAY = [
{
start: {
hour: 9,
},
end: {
hour: 22,
},
},
]
export const OWNER_AVAILABILITY: AvailabilitySlotsMap = {
1: DEFAULT_WORKDAY,
2: DEFAULT_WORKDAY,
3: DEFAULT_WORKDAY,
4: DEFAULT_WORKDAY,
5: DEFAULT_WORKDAY,
}
export const LOCAL_DATE_OPTIONS: Intl.DateTimeFormatOptions = {
day: "numeric",
month: "long",
year: "numeric",
weekday: "long",
}
export const LOCAL_TIME_OPTIONS: Intl.DateTimeFormatOptions = {
hour: "numeric",
minute: "numeric",
}