"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PromptInputContext = void 0;
exports.useIsFullscreen = useIsFullscreen;
exports.usePromptInput = usePromptInput;
var _react = _interopRequireWildcard(require("react"));
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
const PromptInputContext = exports.PromptInputContext = /*#__PURE__*/(0, _react.createContext)({
  isLoading: false,
  value: '',
  setValue: () => {},
  maxHeight: 240,
  onSubmit: undefined,
  disabled: false,
  textareaRef: /*#__PURE__*/_react.default.createRef(),
  currentHeight: 44,
  setCurrentHeight: () => {},
  isFullscreen: false,
  attachments: [],
  addAttachment: () => {},
  removeAttachment: () => {},
  updateAttachment: () => {},
  handleCompletionKey: null,
  setHandleCompletionKey: () => {}
});
function usePromptInput() {
  return (0, _react.useContext)(PromptInputContext);
}
function useIsFullscreen() {
  return (0, _react.useContext)(PromptInputContext).isFullscreen;
}
//# sourceMappingURL=context.js.map