I have something like this in my JSX file. Since I'm using same key and value for props, is there a way I can send all the props at once with shorter notation?
{footer.map(({style, icon}, index) => (
<Div>
<ToggleIcon style={style} icon={icon} />
</Div>
))}