import SwiftUI import JobleyKit import JobleyUI struct PhoneSettings: View { @ObservedObject var curator: CuratorModel var body: some View { Form { Section { if let me = curator.me { LabeledContent("Signed in as", value: me.isCurator ? "Curator" : "Moderator ยท \(me.name)") Button("Sign out", role: .destructive) { curator.signOut() } } else { PasskeySignIn(curator: curator).padding(.vertical, 4) } } header: { Text("Curators and moderators") } footer: { Text("Sign in with your passkey to add the Review tab. Moderators get a one-time setup link when their application is approved.") } if curator.me != nil { Section { PasskeyList(curator: curator) } header: { Text("Passkeys") } footer: { Text("Add a second passkey so you can always get back in. The last one can't be removed.") } } Section("About") { LabeledContent("Version", value: "\(Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "") (\(Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String ?? ""))") Link("Source code (public domain, Unlicense)", destination: AppLinks.source) Link("Privacy", destination: URL(string: "https://jobley.ai/privacy/")!) Link("What counts as a good job", destination: URL(string: "https://jobley.ai/help/#rules")!) } } .navigationTitle("Settings") } }