2024-05-06 06:37:58 +00:00
|
|
|
import AppIntents
|
2024-05-06 06:38:37 +00:00
|
|
|
import WidgetKit
|
2024-05-06 06:37:58 +00:00
|
|
|
|
|
|
|
struct MentionsWidgetConfiguration: WidgetConfigurationIntent {
|
2024-06-26 09:05:35 +00:00
|
|
|
static let title: LocalizedStringResource = "Mentions Widget Configuration"
|
2024-05-06 06:37:58 +00:00
|
|
|
static let description = IntentDescription("Choose the account for this widget")
|
2024-05-06 06:38:37 +00:00
|
|
|
|
2024-05-06 06:37:58 +00:00
|
|
|
@Parameter(title: "Account")
|
2024-09-10 04:53:19 +00:00
|
|
|
var account: AppAccountEntity?
|
2024-05-06 06:37:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension MentionsWidgetConfiguration {
|
|
|
|
static var previewAccount: MentionsWidgetConfiguration {
|
|
|
|
let intent = MentionsWidgetConfiguration()
|
|
|
|
intent.account = .init(account: .init(server: "Test", accountName: "Test account"))
|
|
|
|
return intent
|
|
|
|
}
|
|
|
|
}
|