docusaurus-plugin-typedoc-api
Version:
Docusaurus plugin that provides source code API documentation powered by TypeDoc.
36 lines (34 loc) • 1.25 kB
JavaScript
'use strict';
const react = require('react');
const ApiItem = require('./ApiItem.js');
const jsxRuntime = require('react/jsx-runtime');
function ApiOptionsLayout({
className
}) {
const _react$useContext = react.useContext(ApiItem.ApiOptionsContext),
hideInherited = _react$useContext.hideInherited,
setHideInherited = _react$useContext.setHideInherited;
const handleHideInherited = react.useCallback(() => {
setHideInherited(!hideInherited);
}, [hideInherited, setHideInherited]);
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
className: className,
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
children: /*#__PURE__*/jsxRuntime.jsx("b", {
children: "Page Options"
})
}), /*#__PURE__*/jsxRuntime.jsxs("label", {
children: [/*#__PURE__*/jsxRuntime.jsx("input", {
checked: hideInherited,
type: "checkbox",
onChange: handleHideInherited
}), /*#__PURE__*/jsxRuntime.jsx("span", {
children: "Hide Inherited"
})]
}), /*#__PURE__*/jsxRuntime.jsx("div", {})]
})
});
}
module.exports = ApiOptionsLayout;
//# sourceMappingURL=ApiOptionsLayout.js.map