@redocly/theme
Version:
Shared UI components lib
11 lines • 555 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useActivePageVersion = useActivePageVersion;
const use_theme_hooks_1 = require("./use-theme-hooks");
function useActivePageVersion() {
const { usePageVersions } = (0, use_theme_hooks_1.useThemeHooks)();
const { versions } = usePageVersions();
const activeVersion = versions.find((version) => version.active);
return activeVersion === null || activeVersion === void 0 ? void 0 : activeVersion.version;
}
//# sourceMappingURL=use-active-page-version.js.map