// The three states of a `ScreenRead` inside a `PaperScreen` — what// `ScreenPage` draws for the host chrome, drawn for the paper chrome instead.//// A refusal carries a retry (a read that fell over on a dropped connection// must not be terminal), the first wait is a skeleton, and every later re-read// leaves the last answer on the paper rather than blanking it.importCottonKitimportSwiftUIstructPaperReadBody<Content: View>: View {let read: ScreenRead @ViewBuilder let content: (JSONValue) -> Contentvar body: someView {Group {iflet refusal = read.refusal {QuietState( title: ShellLines.line("projects", "this_could_not_be"), message: refusal, actionLabel: CottonStrings.tryAgain, actionIdentifier: "work-read-retry", action: { Task { await read.load() } } ) } elseiflet value = read.value { content(value) } elseif read.firstAnswerPending {SkeletonPage() } } .task { await read.load() } }}