mediahub-fe/app/[locale]/(protected)/contributor/agenda-setting/page.tsx

20 lines
506 B
TypeScript
Raw Normal View History

2024-11-27 04:14:10 +00:00
import { getEvents, getCategories } from "./utils";
2025-01-01 08:33:42 +00:00
import { calendarEvents, Category } from "./data";
2024-11-27 04:14:10 +00:00
import CalendarView from "./calender-view";
const CalenderPage = async () => {
const events = await getEvents();
const categories = await getCategories();
const formattedCategories = categories.map((category: Category) => ({
...category,
activeClass: "",
}));
return (
<div>
2025-01-01 08:33:42 +00:00
<CalendarView categories={formattedCategories} />
2024-11-27 04:14:10 +00:00
</div>
);
};
export default CalenderPage;