UNPKG

@payfit/unity-components

Version:

28 lines (27 loc) • 884 B
import { forwardRef as e } from "react"; import { uyTv as t } from "@payfit/unity-themes"; import { jsx as n } from "react/jsx-runtime"; import { Button as r } from "react-aria-components/Button"; import { Link as i } from "react-aria-components/Link"; //#region src/core/components/attachment/parts/RawAttachmentTrigger.tsx var a = t({ base: ["uy:absolute uy:inset-0 uy:z-0", "uy:cursor-pointer uy:rounded-[inherit] uy:outline-none"] }), o = e((e, t) => { if (e.asElement === "a") { let { asElement: r, ...o } = e; return /* @__PURE__ */ n(i, { ...o, ref: t, "data-unity-slot": "attachment-trigger", className: a() }); } let { asElement: o, ...s } = e; return /* @__PURE__ */ n(r, { ...s, ref: t, "data-unity-slot": "attachment-trigger", className: a() }); }); o.displayName = "RawAttachmentTrigger"; //#endregion export { o as RawAttachmentTrigger };