"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useInputContext = useInputContext;
const react_1 = require("react");
const InputContext_1 = require("./InputContext.js");
/**
 * Returns attachment context (files, header chips, send helpers).
 * Must be used only under `InputContextProvider`.
 */
function useInputContext() {
    const ctx = (0, react_1.useContext)(InputContext_1.InputContext);
    if (!ctx) {
        throw new Error('useInputContext must be used within InputContextProvider');
    }
    return ctx;
}
//# sourceMappingURL=useInputContext.js.map
