-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
91 lines (86 loc) · 1.86 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export interface PrismicImage {
alt?: string
dimensions: { width: number; height: number }
url: string
}
export type Diet = 'Vegan (v)' | 'No specific diet' | 'Vegetarian (g)'
export interface DrinksSection {
slice_type: 'drinks_section'
items: Array<{
name?: string
description?: string
unit?: string
price?: number
}>
primary: { title?: string }
}
export interface WinesSection {
slice_type: 'wine_section'
items: Array<{
name?: string
description?: string
glass_price?: string
bottle_price?: number
}>
primary: { title?: string }
}
export interface HomeData {
opening_hours?: Array<{ day: string }>
phone?: string
instagram_handle?: string
header_image: PrismicImage & {
Narrow: PrismicImage
Medium: PrismicImage
Small: PrismicImage
Share: PrismicImage
}
city?: string
address?: string
country?: string
text?: string
content_image_top_left: PrismicImage & {
Small: PrismicImage
}
content_image_right: PrismicImage & {
Small: PrismicImage
}
content_image_bottom: PrismicImage & {
Small: PrismicImage
}
footer_text?: string
title?: string
description?: string
menu_title?: string
burgers_title?: string
burgers: Array<{
name?: string
description?: string
price?: number
diet: Diet
}>
burgers_extra_info_first?: string
burgers_extra_info_second?: string
sides_title?: string
sides: Array<{
name?: string
description?: string
price?: number
diet: Diet
}>
dips_title?: string
dips: Array<{ name?: string }>
dips_price?: number
grill_title?: string
grill_subtitle?: string
grill: Array<{
name?: string
description?: string
price?: number
diet: Diet
}>
drinks_title?: string
body: Array<DrinksSection | WinesSection>
lunch_offer?: PrismicImage
reservation_title?: string
reservation_body?: unknown
}