training_data/apps/web/src/app/main/my-duty/page.tsx

22 lines
414 B
TypeScript
Raw Normal View History

2025-02-26 21:08:38 +08:00
import CourseList from "@web/src/components/models/course/list/CourseList";
import { useAuth } from "@web/src/providers/auth-provider";
2025-02-26 19:49:50 +08:00
2025-02-26 21:08:38 +08:00
export default function MyDutyPage() {
const { user } = useAuth();
return (
<>
<div className="p-4">
<CourseList
edit
params={{
pageSize: 12,
where: {
authorId: user.id,
},
}}
cols={4}></CourseList>
</div>
</>
);
2025-02-26 19:49:50 +08:00
}