import React from 'react';
import { PageWithHeader, Content, ContentHeader, SupportButton } from '@backstage/core-components';

function BasePage(props) {
  const {
    children,
    contentHeaderTitle = "",
    pageThemeId = "tool",
    pageTitle,
    pageType,
    pageTypeLink,
    showContentHeader = false,
    showSupportButton = false
  } = props;
  return /* @__PURE__ */ React.createElement(
    PageWithHeader,
    {
      title: pageTitle,
      type: pageType,
      typeLink: pageTypeLink,
      themeId: pageThemeId
    },
    /* @__PURE__ */ React.createElement(Content, null, showContentHeader && /* @__PURE__ */ React.createElement(ContentHeader, { title: contentHeaderTitle }, showSupportButton && /* @__PURE__ */ React.createElement(SupportButton, null, "Support")), children)
  );
}

export { BasePage };
//# sourceMappingURL=BasePage.esm.js.map
