( childComponent: AstroComponentFactory, propsArray: Record<string, unknown>[], )
| 237 | * props object in the array. |
| 238 | */ |
| 239 | export function createMultiChildPage( |
| 240 | childComponent: AstroComponentFactory, |
| 241 | propsArray: Record<string, unknown>[], |
| 242 | ): AstroComponentFactory { |
| 243 | return createComponent((result: any) => { |
| 244 | const renders = propsArray.map( |
| 245 | (props) => render`${renderComponent(result, 'Child', childComponent, props)}`, |
| 246 | ); |
| 247 | return render`${renders}`; |
| 248 | }); |
| 249 | } |
| 250 | |
| 251 | interface CreateRouteDataOptions { |
| 252 | route: string; |
no test coverage detected