This commit is contained in:
Aakiyaru 2025-05-28 14:21:21 +07:00
parent bf191a40c6
commit 9db4e1b3c0

View File

@ -10,20 +10,22 @@ import SwiftUI
public struct CatalogButton: View { public struct CatalogButton: View {
let title: String let title: String
let disactive: Bool
let action: () -> () let action: () -> ()
public init(title: String, action: @escaping () -> Void) { public init(title: String, disactive: Bool, action: @escaping () -> Void) {
self.title = title self.title = title
self.disactive = disactive
self.action = action self.action = action
} }
public var body: some View { public var body: some View {
CustomMainButtonView(title: title, size: .chips, disactive: true) {action()} CustomMainButtonView(title: title, size: .chips, disactive: disactive) {action()}
} }
} }
#Preview { #Preview {
CatalogButton(title: "Женщинам") { CatalogButton(title: "Женщинам", disactive: true) {
} }
} }