Add announcements banner loading content

Add leaflet type definitions
This commit is contained in:
Michał Gdula 2024-04-28 00:27:17 +01:00
parent 782c88d082
commit 05e3adb5bb
7 changed files with 149 additions and 24 deletions

View file

@ -4,6 +4,14 @@ async function fakeDelay(timeout = 1000) {
await new Promise(resolve => setTimeout(resolve, timeout));
}
export async function getAnnouncements() {
const data = {
image: "/BannerExampleImage.jpg",
};
await fakeDelay(2000)
return data;
}
export async function getPopularToday() {
const data = Items;
await fakeDelay(2000)