${ } This is can hold only a variable.
Try to do exactly as I did.
There’s no reason it would not work for you.
const menuItems = {
color: {
black: '#000000',
white: '#ffffff',
pink: '#ff00de'
},
setItemsColor: (color) => {
return // PASTE THE SVG CODE HERE.
}
}
Update if it works.