@backstage/plugin-techdocs
Version:
The Backstage plugin that renders technical documentation for your components
22 lines (19 loc) • 824 B
JavaScript
import { jsx, Fragment } from 'react/jsx-runtime';
import { PageWithHeader } from '@backstage/core-components';
import { useApi, configApiRef } from '@backstage/core-plugin-api';
const TechDocsPageWrapper = (props) => {
const { children, CustomPageWrapper } = props;
const configApi = useApi(configApiRef);
const generatedSubtitle = `Documentation available in ${configApi.getOptionalString("organization.name") ?? "Backstage"}`;
return /* @__PURE__ */ jsx(Fragment, { children: CustomPageWrapper ? /* @__PURE__ */ jsx(CustomPageWrapper, { children }) : /* @__PURE__ */ jsx(
PageWithHeader,
{
title: "Documentation",
subtitle: generatedSubtitle,
themeId: "documentation",
children
}
) });
};
export { TechDocsPageWrapper };
//# sourceMappingURL=TechDocsPageWrapper.esm.js.map