 import SwiftUI
 
 struct PadsView: View {
-    @EnvironmentObject var conductor: Conductor
+    var padsAction: (_ padNumber: Int) -> Void
 
     var body: some View {
         VStack(spacing: 2) {

                HStack(spacing: 2) {
                  ForEach((0..<3), id: \.self) { column in
                      Button(action: {
                          self.conductor.playPad(padNumber: getPadId(row: row, column: column))
                      }) {
                          ZStack {
                              Rectangle()

            Text("AudioKit Drum Pads").font(.system(size: 20)).fontWeight(.bold)
            Spacer()
            Text("Last played Sample").fontWeight(.bold)
            Text(lastPlayed)
            Spacer().fixedSize(horizontal: false, vertical: true)
              .frame(width: 0, height: 40, alignment: .bottom)
        }
