12 lines
221 B
TypeScript
12 lines
221 B
TypeScript
|
|
import { calendarEvents, categories } from "./data";
|
||
|
|
|
||
|
|
// get events
|
||
|
|
export const getEvents = async () => {
|
||
|
|
return calendarEvents;
|
||
|
|
};
|
||
|
|
|
||
|
|
// get categories
|
||
|
|
export const getCategories = async () => {
|
||
|
|
return categories;
|
||
|
|
};
|