Proper way of using sheets in lists

Is it bad practice if I put sheet elements inside the ItemCell? Or do they have to be placed outside of the ForEach?

Pseudo:

ItemCell {
    @ObservedObject var item
    Text(item.description)
      .confirmationDialog <-- Present delete confirmation
      .swipeActions
      .contextMenu
      .sheet(...) <-- Present edit form
      .sheet(...)
}
            List {
                Section {
                    ForEach(pinned) {item in
                        ItemCell(item: item)
                    }
                } header: {
                    Text("Pinned items")
                }
                
                Section {
                    ForEach(notPinned) {item in
                        ItemCell(item: item)
                    }
                }
            }
Proper way of using sheets in lists
 
 
Q