71 lines
3.3 KiB
JavaScript
71 lines
3.3 KiB
JavaScript
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from "./table-DB-AS5w6.js";
|
|
import { A as AppLayout, i as index } from "./app-layout-BFyUFda2.js";
|
|
import { Head, Link } from "@inertiajs/react";
|
|
import { Pencil, Trash2 } from "lucide-react";
|
|
import "./index-CY6fYws-.js";
|
|
import "@radix-ui/react-slot";
|
|
import "class-variance-authority";
|
|
import "clsx";
|
|
import "tailwind-merge";
|
|
import "react";
|
|
import "./sheet-Bq2cyJmx.js";
|
|
import "@radix-ui/react-dialog";
|
|
import "@radix-ui/react-tooltip";
|
|
import "@radix-ui/react-dropdown-menu";
|
|
import "@radix-ui/react-avatar";
|
|
import "./app-logo-icon-kpljnLMz.js";
|
|
function Testimonial({
|
|
testimonial
|
|
}) {
|
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
AppLayout,
|
|
{
|
|
breadcrumbs: [{ title: "Testimonial", href: index().url }],
|
|
children: [
|
|
/* @__PURE__ */ jsx(Head, { title: "Testimonials" }),
|
|
/* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-8 px-8 py-8", children: [
|
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsx("h1", { className: "text-xl font-semibold tracking-tight", children: "Testimonial" }) }),
|
|
/* @__PURE__ */ jsxs(Table, { children: [
|
|
/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
/* @__PURE__ */ jsx(TableHead, { className: "w-[80px]", children: "S.N." }),
|
|
/* @__PURE__ */ jsx(TableHead, { className: "w-48", children: "Image" }),
|
|
/* @__PURE__ */ jsx(TableHead, { children: "Name" }),
|
|
/* @__PURE__ */ jsx(TableHead, { children: "Location" }),
|
|
/* @__PURE__ */ jsx(TableHead, { children: "Description" }),
|
|
/* @__PURE__ */ jsx(TableHead, { className: "text-right", children: "Action" })
|
|
] }) }),
|
|
/* @__PURE__ */ jsx(TableBody, { children: testimonial.map((item, index2) => /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
/* @__PURE__ */ jsx(TableCell, { className: "font-medium", children: index2 + 1 }),
|
|
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(
|
|
"img",
|
|
{
|
|
src: item.image,
|
|
alt: item.name,
|
|
className: "aspect-video w-24 rounded-md object-cover object-center"
|
|
}
|
|
) }),
|
|
/* @__PURE__ */ jsx(TableCell, { children: item.name }),
|
|
/* @__PURE__ */ jsx(TableCell, { children: item.location }),
|
|
/* @__PURE__ */ jsx(TableCell, { children: item.description }),
|
|
/* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2", children: [
|
|
/* @__PURE__ */ jsx(Link, { href: "", children: /* @__PURE__ */ jsx(Pencil, { size: 18 }) }),
|
|
/* @__PURE__ */ jsx(Link, { href: "", children: /* @__PURE__ */ jsx(
|
|
Trash2,
|
|
{
|
|
size: 18,
|
|
color: "#D2042D"
|
|
}
|
|
) })
|
|
] }) })
|
|
] }, index2)) })
|
|
] })
|
|
] })
|
|
]
|
|
}
|
|
) });
|
|
}
|
|
export {
|
|
Testimonial as default
|
|
};
|