( h: View.HelperBase<Msg, unknown>, options: ScreensOptions<A, N> )
| 366 | * @since 4.2.0 |
| 367 | */ |
| 368 | export const Screens = <Msg, A, N extends View.Content<never, unknown>>( |
| 369 | h: View.HelperBase<Msg, unknown>, |
| 370 | options: ScreensOptions<A, N> |
| 371 | ): ReadonlyArray<View.Child<Msg, View.Requirements<N>>> => { |
| 372 | const Screen = screen ??= makeScreen() |
| 373 | const { entries } = options |
| 374 | const draw = options.screen as Draw |
| 375 | const top = entries.length - 1 |
| 376 | return entries.map((entry, index) => |
| 377 | Screen(h, { |
| 378 | key: String(entry.id), |
| 379 | props: { entry, covered: index < top, draw } |
| 380 | }) as View.Child<Msg, View.Requirements<N>> |
| 381 | ) |
| 382 | } |
nothing calls this directly
no test coverage detected