import { TDefaultPageName , TStaticPageContext } from '@cromwell/core' ; param pageName param PageExports param context export const getThemeStaticProps = async ( pageName , pageGetStaticProps , context ) : Promise < Record < string , any > > => { let childStaticProps = { } ; if ( pageGetStaticProps ) { try { childStaticProps = ( await pageGetStaticProps ( context ) ) ?? { } ; } catch ( e ) { console . error ( '[Error] getThemeStaticProps: failed to get StaticProps of page: ' + pageName , e ) ; } } return childStaticProps ; } ;