UNPKG

@stanfordspezi/spezi-web-design-system

Version:

Stanford Biodesign Digital Health Spezi Web Design System

41 lines (40 loc) 1.4 kB
import { jsxs as r, jsx as a } from "react/jsx-runtime"; import { c as p } from "./index-2NvaPZWc.mjs"; import { c as s } from "./misc-Ci6Z8ZmP.mjs"; import { c as i } from "./createLucideIcon-C8GTh_Qx.mjs"; /** * @license lucide-react v0.488.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const n = [ ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }], ["path", { d: "M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2", key: "4jdomd" }], ["path", { d: "M16 4h2a2 2 0 0 1 2 2v4", key: "3hqy98" }], ["path", { d: "M21 14H11", key: "1bme5i" }], ["path", { d: "m15 10-4 4 4 4", key: "5dvupr" }] ], d = i("clipboard-copy", n), u = ({ children: t, className: o, value: c }) => { const e = c ?? String(t); return /* @__PURE__ */ r( "button", { type: "button", className: p( "interactive-opacity flex w-full items-center gap-2", o ), onClick: async () => { await s(e); }, "aria-label": `Copy "${e}" to clipboard`, children: [ /* @__PURE__ */ a("span", { className: "truncate", children: t }), /* @__PURE__ */ a("span", { className: "flex", children: /* @__PURE__ */ a(d, { className: "text-muted-foreground size-5" }) }) ] } ); }; export { u as C };