Download this file
| 1 | #if os(macOS) |
| 2 | import SwiftUI |
| 3 | public struct DocsAccountActions { |
| 4 | public let accounts: (() -> Void)? |
| 5 | public let signOut: () -> Void |
| 6 | public let canManage: Bool |
| 7 | public let canSignOut: Bool |
| 8 | /// "Use another Oficina ID", for an Oficina ID only (Paul, 2026-11-19). |
| 9 | public var useAnother: (() -> Void)? = nil |
| 10 | /// The menu's words for an Oficina ID ("Teams", "Sign out of <label>"); |
| 11 | /// nil keeps "Accounts" and "Sign out". |
| 12 | public var accountsLabel: String? = nil |
| 13 | public var signOutLabel: String? = nil |
| 14 | } |
| 15 | extension FocusedValues { @Entry public var docsAccountActions: DocsAccountActions? } |
| 16 | #endif |
| 17 | |