UNPKG

@assistant-ui/react

Version:

Typescript/React library for AI Chat

14 lines (13 loc) 482 B
"use client"; // src/primitives/attachment/AttachmentName.tsx import { useAttachment } from "../../context/react/AttachmentContext.mjs"; import { Fragment, jsx } from "react/jsx-runtime"; var AttachmentPrimitiveName = () => { const name = useAttachment((a) => a.name); return /* @__PURE__ */ jsx(Fragment, { children: name }); }; AttachmentPrimitiveName.displayName = "AttachmentPrimitive.Name"; export { AttachmentPrimitiveName }; //# sourceMappingURL=AttachmentName.mjs.map