Generate dynamic number of icons

Hi,
I want to generate a dynamic number of icons. The number depends on the value of a variable.

Hi, you can use GENERATE_RANGE to get an array of numbers with the length:

GENERATE_RANGE(1,pageVars.amount) => [1, 2, 3] if amount = 3

Then replace each number with an icon name like this:

MAP(GENERATE_RANGE(1,pageVars.amount), {icon: "star"}) => [{icon: "star"}, {icon: "star"}, {icon: "star"}]

And repeat the icon component with this array.