Cotton code
17 lines · 577 B · SwiftRaw
import SwiftUI/// A new record uses the same column editors as an existing page.public struct TableBlankRoute: View {  let table: String  @Environment(\.tableDefinitions) private var definitions  public init(table: String) { self.table = table }  public var body: some View {    if let definition = definitions[table] {      RecordOpening(definition: definition, opens: .blank([:]))    } else {      PaperScreen {        QuietState(title: ShellLines.line("record", "table.unreadable"), message: ShellLines.line("record", "table.no_definition"))      }    }  }}