-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathuse-artwork-data.ts
More file actions
49 lines (47 loc) · 1.26 KB
/
use-artwork-data.ts
File metadata and controls
49 lines (47 loc) · 1.26 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
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: [],
//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",
discord_url: "https://discord.com",
instagram_url: "",
},
{
id: 2,
art_id: Number(id),
member_name: "Contributor 2",
role: "user2",
discord_url: "",
instagram_url: "https://instagram.com",
},
],
};
};