fd
This commit is contained in:
parent
bf191a40c6
commit
9db4e1b3c0
@ -10,20 +10,22 @@ import SwiftUI
|
||||
public struct CatalogButton: View {
|
||||
|
||||
let title: String
|
||||
let disactive: Bool
|
||||
let action: () -> ()
|
||||
|
||||
public init(title: String, action: @escaping () -> Void) {
|
||||
public init(title: String, disactive: Bool, action: @escaping () -> Void) {
|
||||
self.title = title
|
||||
self.disactive = disactive
|
||||
self.action = action
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
CustomMainButtonView(title: title, size: .chips, disactive: true) {action()}
|
||||
CustomMainButtonView(title: title, size: .chips, disactive: disactive) {action()}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
CatalogButton(title: "Женщинам") {
|
||||
CatalogButton(title: "Женщинам", disactive: true) {
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user