laif-ds
Version:
Design System di Laif con componenti React basati su principi di Atomic Design
24 lines (23 loc) • 711 B
JavaScript
"use client";
import { jsxs as t, jsx as e } from "react/jsx-runtime";
function d({
label: c,
append: l,
suggestions: n
}) {
return /* @__PURE__ */ t("div", { className: "grow space-y-6", children: [
/* @__PURE__ */ e("h2", { className: "text-center text-2xl font-bold", children: c }),
/* @__PURE__ */ e("div", { className: "flex gap-6 text-sm", children: n.map((r) => /* @__PURE__ */ e(
"button",
{
onClick: () => l({ role: "user", content: r }),
className: "bg-d-background hover:bg-d-secondary h-max flex-1 rounded-xl border p-4",
children: /* @__PURE__ */ e("p", { children: r })
},
r
)) })
] });
}
export {
d as PromptSuggestions
};