"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequestMakerProvider = exports.RequestMaker = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const useRequestMaker_1 = require("../../hooks/useRequestMaker");
Object.defineProperty(exports, "RequestMakerProvider", { enumerable: true, get: function () { return useRequestMaker_1.RequestMakerProvider; } });
const Request_1 = require("./Request");
const Response_1 = require("./Response");
tslib_1.__exportStar(require("./Request"), exports);
tslib_1.__exportStar(require("./Response"), exports);
exports.RequestMaker = props => {
    const store = useRequestMaker_1.useRequestMaker(props.request || props.operation);
    return (React.createElement(useRequestMaker_1.RequestMakerProvider, { value: store },
        React.createElement(Request_1.RequestEndpoint, null),
        React.createElement(Request_1.RequestEditor, null),
        React.createElement(Response_1.ResponseViewer, null)));
};
//# sourceMappingURL=index.js.map