@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
21 lines • 1.14 kB
JavaScript
/**
* 2024-09-06: Migrated to fps-core-v7\src\components\atoms\easy-pages\functions\
*/
// import { ISupportedHost } from "../../../../common/interfaces/indexes/Layout";
import { getReactCSSFromString } from "../../../../logic/Strings/reactCSS";
export function createEasyPagesSourceWPProps(main) {
const epSrcWPProps = main.properties;
const easyPagesSourceProps = {
context: main.context,
fpsSpService: main._fpsSpService,
pageLayout: epSrcWPProps.pageLayout,
repo: main._repoLink,
pinState: epSrcWPProps.defPinState,
// added null so not to over-ride any color choices for easy pages
// 2024-09-07: changed null to false based upon reviewing the actual function... the only place that's applicable is if it's true
styles: getReactCSSFromString('EasyPageStyles', epSrcWPProps.EasyPageStyles, {}, false).parsed,
containerStyles: getReactCSSFromString('EasyPageContainerStyles', epSrcWPProps.EasyPageContainerStyles, {}, false).parsed,
};
return easyPagesSourceProps;
}
//# sourceMappingURL=createEasyPagesSourceWPProps.js.map