import SwiftUI import SFSafeSymbols private struct InsertableView: View where Command: InsertableCommand { @State private var showSheet: Bool = false var body: some View { Button(action: { showSheet = true }) { Label(Command.title, systemSymbol: Command.icon) } .sheet(isPresented: $showSheet) { InsertableCommandSheet() } } } struct InsertableItemsView: View { var body: some View { HStack { Text("Commands") .font(.headline) InsertableView() } } }