import CourseList from "@web/src/components/models/course/list/CourseList";
import { useAuth } from "@web/src/providers/auth-provider";
import { useMainContext } from "../layout/MainProvider";

export default function MyDutyPage() {
	const { user } = useAuth();
	const { searchCondition } = useMainContext();
	return (
		<>
			<div className="p-4">
				<CourseList
					edit
					params={{
						pageSize: 12,
						where: {
							authorId: user.id,
							...searchCondition,
						},
					}}
					cols={4}></CourseList>
			</div>
		</>
	);
}
