import React from 'react'; import CourseCard from '@/components/elements/CourseCard'; import useSWR from 'swr'; import { APP_BASE_URL } from '@/utils/constants'; import { defaultFetcher } from '@/helpers/fetch.helper'; const FeaturedCourses = () => { const { data : CourseList } = useSWR(APP_BASE_URL + '' , defaultFetcher) const courses = [ { id: 1, title: 'Foundation course to under stand about software', category: 'Data & Tech', lessons: 23, duration: '1hr 30 min', price: 32.00, originalPrice: 89.00, instructor: { name : 'Micie John', image: 'https://dummyimage.com/300' }, rating: 4.5, reviews: 44, image: 'https://dummyimage.com/300' }, { id: 2, title: 'Nidhies course to under stand about softwere', category: 'Mechanical', lessons: 29, duration: '2hr 30 min', price: 32.00, originalPrice: 89.00, instructor: { name : 'Micie John', image: 'https://dummyimage.com/300' }, rating: 4.5, reviews: 44, image: 'https://dummyimage.com/300' }, { id: 3, title: 'Minws course to under stand about solution', category: 'Development', lessons: 25, duration: '1hr 40 min', price: 40.00, originalPrice: 89.00, instructor: { name : 'Micie John', image: 'https://dummyimage.com/300' }, rating: 4.5, reviews: 44, image: 'https://dummyimage.com/300' }, { id: 3, title: 'Minws course to under stand about solution', category: 'Development', lessons: 25, duration: '1hr 40 min', price: 40.00, originalPrice: 89.00, instructor: { name : 'Micie John', image: 'https://dummyimage.com/300' }, rating: 4.5, reviews: 44, image: 'https://dummyimage.com/300' } ]; return (

Featured Courses

View all featured courses

{ courses?.map((course : Record , index) => { return( ) }) }
); }; export default FeaturedCourses;