| 112 | * @returns {import('react').ReactElement} |
| 113 | */ |
| 114 | export const renderPage = props => { |
| 115 | // Defines a shared Server Context for the Client-Side |
| 116 | // That is shared for all pages under the dynamic router |
| 117 | setClientContext(props.context); |
| 118 | |
| 119 | // The Matter Provider allows Client-Side injection of the data |
| 120 | // to a shared React Client Provider even though the page is rendered |
| 121 | // within a server-side context |
| 122 | return ( |
| 123 | <MatterProvider {...props.context}> |
| 124 | <WithLayout layout={props.layout}>{props.content}</WithLayout> |
| 125 | </MatterProvider> |
| 126 | ); |
| 127 | }; |
nothing calls this directly
no test coverage detected