import { Button } from '@/components/ui/button';
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from '@/components/ui/table';
import AppLayout from '@/layouts/app-layout';
import dashboard from '@/routes/dashboard';
import { Head, Link } from '@inertiajs/react';
import { Pencil, Trash2 } from 'lucide-react';
export default function Faq({
faq,
}: {
faq: [{ question: string; answer: string }];
}) {
return (
FAQs
S.N.
Question
Answer
Action
{faq.map((item, index) => (
{index + 1}
{item.question}
{item.answer}
))}
);
}