import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '@/components/ui/table'; import AppLayout from '@/layouts/app-layout'; import { index } from '@/routes/testimonial'; import { Head, Link } from '@inertiajs/react'; import { Pencil, Trash2 } from 'lucide-react'; export default function Testimonial({ testimonial, }: { testimonial: [ { name: string; description: string; location: string; image: string }, ]; }) { return ( <>

Testimonial

S.N. Image Name Location Description Action {testimonial.map((item, index) => ( {index + 1} {item.name} {item.name} {item.location} {item.description}
))}
); }