import DefaultCard from '@/components/cards/course-card-1'; import ExamCard from '@/components/exam/exam-card-1'; import { Card } from '@/components/ui/card'; import { StudentDashboardProps } from '@/types/page'; import { usePage } from '@inertiajs/react'; const Wishlist = () => { const { courseWishlists, examWishlists, translate } = usePage().props; const { frontend } = translate; return (

Course Wishlist

{courseWishlists && courseWishlists.length > 0 ? (
{courseWishlists.map(({ id, course }) => ( ))}
) : (

{frontend.no_wishlist_items}

)}

Exam Wishlist

{examWishlists && examWishlists.length > 0 ? (
{examWishlists.map(({ id, exam }) => ( ))}
) : (

{frontend.no_wishlist_items}

)}
); }; export default Wishlist;