From fadb2ec4cb1c090c0985335a37fab5b965aa19ae Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Sun, 20 Oct 2024 11:42:07 -0700 Subject: [PATCH] feat: add useAttachment / useAttachmentRuntime export (#1036) Co-authored-by: xiangst <280304286@163.com> --- packages/react/src/context/react/index.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/react/src/context/react/index.ts b/packages/react/src/context/react/index.ts index 842c825c1..0e1df5723 100644 --- a/packages/react/src/context/react/index.ts +++ b/packages/react/src/context/react/index.ts @@ -145,3 +145,16 @@ export { */ useComposerContext, } from "./ComposerContext"; + +export { + useAttachment, + useAttachmentRuntime, + + // TODO decide if we want to export/drop these? + // useEditComposerAttachment, + // useEditComposerAttachmentRuntime, + // useMessageAttachment, + // useMessageAttachmentRuntime, + // useThreadComposerAttachment, + // useThreadComposerAttachmentRuntime, +} from "./AttachmentContext";