forked from salimi-my/shadcn-ui-sidebar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmockData.ts
35 lines (34 loc) · 894 Bytes
/
mockData.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
import { LostItem } from "./types";
export const getLostItems = (): Promise<LostItem[]> => {
// This is a mock function. Replace it with your actual data fetching logic.
return Promise.resolve([
{
id: "1",
title: "Blue Backpack",
description: "A blue backpack with white stripes",
date_lost: "2023-08-15",
location: "Central Park",
status: "open",
is_official_document: false
},
{
id: "2",
title: "Passport",
description: "A lost passport",
date_lost: "2023-08-15",
location: "Times Square",
status: "open",
is_official_document: true
},
{
id: "3",
title: "Laptop",
description: "A lost laptop",
date_lost: "2023-08-15",
location: "Empire State Building",
status: "open",
is_official_document: false
// ... add more mock items
}
])
}