-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathuse-artwork-data.ts
More file actions
58 lines (56 loc) · 1.39 KB
/
use-artwork-data.ts
File metadata and controls
58 lines (56 loc) · 1.39 KB
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
import { Art } from "@/types/art";
export const generateMockArtworks = (count: number): Art[] => {
const artworks: Art[] = [];
for (let i = 1; i <= count; i++) {
artworks.push({
id: i,
name: `Artwork ${i}`,
description: "Mock artwork description",
//source_game: "Mock Game",
media: "",
active: true,
contributors: [
{
id: i * 10 + 1,
art_id: i,
member_name: "Contributor 1",
role: "artist",
},
{
id: i * 10 + 2,
art_id: i,
member_name: "Contributor 2",
role: "designer",
},
],
//created_at: new Date().toISOString(),
});
}
return artworks;
};
export const generateMockArtwork = (id: string): Art => {
return {
id: Number(id),
name: "Mock Artwork Title",
description:
"Lorem ipsum dolor sit amet. Non numquam dicta nam autem dicta 33 error molestias et repellat consequatur eum iste expedita est dolorem libero et quas provident!",
//source_game: "Mock Game",
media: "",
active: true,
//created_at: new Date().toISOString(),
contributors: [
{
id: 1,
art_id: Number(id),
member_name: "Contributor 1",
role: "user1",
},
{
id: 2,
art_id: Number(id),
member_name: "Contributor 2",
role: "user2",
},
],
};
};