UNPKG

@payfit/unity-components

Version:

28 lines (27 loc) 962 B
import { forwardRef as e } from "react"; import { uyTv as t } from "@payfit/unity-themes"; import { jsx as n } from "react/jsx-runtime"; import { useIntl as r } from "react-intl"; import { TagGroup as i, TagList as a } from "react-aria-components/TagGroup"; //#region src/modules/ai-kit/components/ai-composer/parts/AIComposerAttachmentsGroup.tsx var o = t({ slots: { base: ["uy:flex uy:flex-wrap uy:items-start uy:gap-50"] } }), s = e(({ children: e, items: t, onRemove: s, renderEmptyState: c, "aria-label": l, ...u }, d) => { let f = r(), { base: p } = o(); return /* @__PURE__ */ n(i, { ref: d, ...u, selectionMode: "none", onRemove: s, "aria-label": l ?? f.formatMessage({ id: "unity:module:ai-kit:composer:attachment-group", defaultMessage: "Attachments" }), children: /* @__PURE__ */ n(a, { items: t, renderEmptyState: c, className: p(), children: e }) }); }); //#endregion export { s as AIComposerAttachmentsGroup };