@dndbuilder.com/react
Version:
Drag and drop builder for React
31 lines (30 loc) • 1.78 kB
JavaScript
"use client";
import { jsxs as r, jsx as e } from "react/jsx-runtime";
import { Rating as d } from "../../../../components/shared/rating.js";
import { MdFaceRetouchingNatural as g } from "../../../../../../../node_modules/.pnpm/react-icons@5.5.0_react@19.0.0/node_modules/react-icons/md/index.js";
const h = ({ data: t, meta: l }) => {
var c, a, o;
const i = (l == null ? void 0 : l.locale) || "en", s = (c = t.name) == null ? void 0 : c[i], n = (a = t.position) == null ? void 0 : a[i], m = (o = t.content) == null ? void 0 : o[i];
return /* @__PURE__ */ r("figure", { className: "testimonial-card", children: [
/* @__PURE__ */ e("blockquote", { className: "review-msg text-dark-800 text-lg tracking-tight", children: /* @__PURE__ */ e("p", { children: m }) }),
t.showRating && /* @__PURE__ */ e("div", { className: "text-dark-700 mt-3 flex gap-x-1", children: /* @__PURE__ */ e(d, { count: 5, value: t.rating ?? 0, size: 14 }) }),
/* @__PURE__ */ r("figcaption", { className: "mt-4 flex items-center gap-x-6", children: [
/* @__PURE__ */ e("div", { className: "image-wrapper flex h-12 w-12 items-center justify-center rounded-full border", children: t.image ? /* @__PURE__ */ e(
"img",
{
className: "bg-dark-50 h-full w-full rounded-full",
src: t.image.url,
alt: s
}
) : /* @__PURE__ */ e(g, { className: "text-dark-400 text-lg" }) }),
/* @__PURE__ */ r("div", { className: "text-sm leading-4", children: [
/* @__PURE__ */ e("div", { className: "text-dark-900 font-semibold", children: s }),
n && /* @__PURE__ */ e("div", { className: "text-dark-600 mt-0.5", children: n })
] })
] })
] });
};
export {
h as default
};
//# sourceMappingURL=preset-one.js.map