"use strict";

import React, { createContext, useContext } from 'react';
export const PromptInputContext = /*#__PURE__*/createContext({
  isLoading: false,
  value: '',
  setValue: () => {},
  maxHeight: 240,
  onSubmit: undefined,
  disabled: false,
  textareaRef: /*#__PURE__*/React.createRef(),
  currentHeight: 44,
  setCurrentHeight: () => {},
  isFullscreen: false,
  attachments: [],
  addAttachment: () => {},
  removeAttachment: () => {},
  updateAttachment: () => {},
  handleCompletionKey: null,
  setHandleCompletionKey: () => {}
});
export function usePromptInput() {
  return useContext(PromptInputContext);
}
export function useIsFullscreen() {
  return useContext(PromptInputContext).isFullscreen;
}
//# sourceMappingURL=context.js.map