mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
28 lines
695 B
Swift
28 lines
695 B
Swift
// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import SwiftUI
|
|
import DifferenceKit
|
|
|
|
// MARK: - ListItemButton
|
|
|
|
struct ListItemButton: View {
|
|
let title: String
|
|
let enabled: Bool
|
|
|
|
var body: some View {
|
|
Text(title)
|
|
.font(.Body.largeRegular)
|
|
.foregroundColor(themeColor: .sessionButton_primaryFilledText)
|
|
.framing(
|
|
maxWidth: .infinity,
|
|
height: 50,
|
|
alignment: .center
|
|
)
|
|
.background(
|
|
RoundedRectangle(cornerRadius: 7)
|
|
.fill(themeColor: enabled ? .sessionButton_primaryFilledBackground : .disabled)
|
|
)
|
|
}
|
|
}
|
|
|