(text, props = {})
| 136 | } |
| 137 | |
| 138 | function pagesIndexCode(text, props = {}) { |
| 139 | return `import props from "../lib/props.js"; |
| 140 | export default () => <div>${text}</div>; |
| 141 | export function getServerSideProps() { return { props: { ...props, ...${JSON.stringify( |
| 142 | props |
| 143 | )}} } }` |
| 144 | } |
| 145 | |
| 146 | function appPageCode(text) { |
| 147 | return `import Client from "./client.tsx"; |
no test coverage detected