-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmock-data.ts
More file actions
33 lines (30 loc) · 1.23 KB
/
mock-data.ts
File metadata and controls
33 lines (30 loc) · 1.23 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
export type File = {
id: string;
name: string;
type: "file";
url: string;
parent: string;
size: string;
};
export type Folder = {
id: string;
name: string;
type: "folder";
parent: string | null;
};
// prettier-ignore
export const mockFolders: Folder[] = [
{ id: "1", name: "Documents", type: "folder", parent: "root" },
{ id: "2", name: "Images", type: "folder", parent: "root" },
{ id: "3", name: "Work", type: "folder", parent: "root" },
{ id: "8", name: "Presentations", type: "folder", parent: "3" },
];
// prettier-ignore
export const mockFiles: File[] = [
{ id: "4", name: "Resume.pdf", type: "file", url: "/files/resume.pdf", parent: "root", size: "1.2 MB" },
{ id: "5", name: "Project Proposal.docx", type: "file", url: "/files/proposal.docx", parent: "1", size: "2.5 MB" },
{ id: "6", name: "Vacation.jpg", type: "file", url: "/files/vacation.jpg", parent: "2", size: "3.7 MB" },
{ id: "7", name: "Profile Picture.png", type: "file", url: "/files/profile.png", parent: "2", size: "1.8 MB" },
{ id: "9", name: "Q4 Report.pptx", type: "file", url: "/files/q4-report.pptx", parent: "8", size: "5.2 MB" },
{ id: "10", name: "Budget.xlsx", type: "file", url: "/files/budget.xlsx", parent: "3", size: "1.5 MB" },
]