import { jsx } from "react/jsx-runtime";
import react from "react";
import { useAttachments } from "../../providers/attachements-provider.js";
import { Attachments } from "../common/attachments.js";
function AutopilotChatInputAttachmentsComponent() {
    const { attachments, removeAttachment, attachmentsLoading } = useAttachments();
    return /*#__PURE__*/ jsx(Attachments, {
        attachments: attachments,
        attachmentsLoading: attachmentsLoading,
        onRemove: removeAttachment
    });
}
const AutopilotChatInputAttachments = /*#__PURE__*/ react.memo(AutopilotChatInputAttachmentsComponent);
export { AutopilotChatInputAttachments };
