mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
24 lines
511 B
TypeScript
24 lines
511 B
TypeScript
|
|
import React from "react";
|
|
import Courses from "./courses";
|
|
import { getOrgCourses } from "@services/courses/courses";
|
|
import { Metadata } from "next";
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'LearnHouse - Courses',
|
|
description: 'courses',
|
|
};
|
|
|
|
const CoursesPage = async (params: any) => {
|
|
const orgslug = params.params.orgslug;
|
|
const courses = await getOrgCourses(orgslug);
|
|
|
|
return (
|
|
<div>
|
|
<Courses orgslug={orgslug} courses={courses}/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default CoursesPage;
|
|
|