import React from "react";
import { Addons } from "@webiny/app/components"; // import { getPlugins } from "@whalecloud/page-builder/plugins/index";
// import { PbPageLayoutComponentPlugin } from "@whalecloud/page-builder/utils/types";

var StaticLayout = function StaticLayout(_ref) {
  var children = _ref.children;
  // const { header: Header, footer: Footer }: any = useMemo(() => {
  //     const plugins = getPlugins<PbPageLayoutComponentPlugin>("pb-layout-component");
  //     return plugins.reduce((acc, item) => {
  //         acc[item.componentType] = item.component;
  //         return acc;
  //     }, {});
  // }, []);
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Addons, null), children);
};

export default StaticLayout;
//# sourceMappingURL=StaticLayout.js.map