-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
69 lines (58 loc) · 1.27 KB
/
types.d.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
import { PopoverTrigger } from '@/components/ui/popover';
import { Billboard, Store } from '@prisma/client';
import { ComponentPropsWithoutRef } from 'react';
import formSchema, { billboardSchema } from './lib/schema';
import * as z from 'zod';
type zInferFormSchema =
| z.infer<typeof formSchema>
| z.infer<typeof billboardSchema>;
type ModalProps = {
title: string;
description: string;
isOpen: boolean;
onClose: () => void;
children?: React.ReactNode;
};
type AlertModalProps = {
isOpen: boolean;
onClose: () => void;
onConfirm: () => void;
loading: boolean;
};
type ApiAlertProps = {
title: string;
description: string;
variant: 'public' | 'admin';
};
type useModalStoreType = {
isOpen: boolean;
onOpen: () => void;
onClose: () => void;
};
interface DashboardPageProps {
params: {
store_id: string;
};
}
interface SettingPageProps {
params: {
store_id: string;
};
}
interface SettingsFormProps {
initialData: Store;
}
interface BillboardFormProps {
initialData: Billboard | null;
}
type HeadingProps = {
title: string;
description: string;
};
type PopoverTriggerProps = ComponentPropsWithoutRef<typeof PopoverTrigger>;
interface StoreSwitcherProps extends PopoverTriggerProps {
items: Store[];
}
interface BillboardClientProps {
data: Billboard[];
}