my problem is this:
I have an array of elements that I want to display with data.array.map (array => {..}. But I would like to do it according to a scheme that has different object, like that:
- Element: 3 thirds
- Element: 1 third
- Element: 2 thirds 4-5. Element: 1 third
- Element: 2 thirds 7, 8. Element: 1 third
- Element: 2 thirds
And it would be nice if this scheme could be continued, i.e. if you could load more objects and then start this scheme all over again. Is there a way to do this in NextJS? Or a library or something similar?

forloop with the step of 10 to iterate over your items and create this 5-row group in each iteration.