@primer/react
Version:
An implementation of GitHub's Primer Design System using React
21 lines (16 loc) • 539 B
JavaScript
;
var React = require('react');
// For performance, the properties in context MUST NOT be values that change often - every time
// any of the properties change, all components including memoized ones will be re-rendered
const MarkdownEditorContext = /*#__PURE__*/React.createContext({
disabled: false,
condensed: false,
required: false,
formattingToolsRef: {
current: null
},
uploadButtonProps: null,
fileDraggedOver: false,
previewMode: false
});
exports.MarkdownEditorContext = MarkdownEditorContext;