import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; import { systemCurrency } from '@/lib/utils'; import { SharedData } from '@/types/global'; import { useForm, usePage } from '@inertiajs/react'; import { Trash } from 'lucide-react'; const CourseCard = ({ course }: { course: Course }) => { const { system } = usePage().props; const { delete: destroy, processing } = useForm(); const currency = systemCurrency(system.fields['selling_currency']); return (
{course.title}

{course.title}

{course.short_description}

{course.pricing_type === 'free' ? ( course.pricing_type ) : course.discount ? ( <> {currency?.symbol} {course.discount_price} {currency?.symbol} {course.price} ) : ( <> {currency?.symbol} {course.price} )}

); }; export default CourseCard;