-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
50 lines (43 loc) · 892 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
49
50
import { JSXElementConstructor, ReactComponentElement, ReactNode } from "react";
export type ArtworkData = {
id: number;
title: string;
year: string;
description: string;
dimensions: string;
images: ImageData[];
};
export type ShowsData = {
id: string;
title: ReactNode;
images: ImageData[];
};
export type ImageData = {
id: string;
description: ReactNode;
src: string;
alt: string;
width: number;
height: number;
};
export type TextData = {
id: string;
title: ReactNode;
author: string;
text: ReactNode;
};
export type ArtworkMetadata = {
title: string | undefined;
year: string | undefined;
description: string | undefined;
dimensions: string | undefined;
};
export type ArtworkImageData = {
url: string;
width: number;
height: number;
}[];
export type HandlNavArtworks = {
prevArtwork: () => void;
nextArtwork: () => void;
};