{
setCurrentPanelValues(val)
Object.keys(
getFirstLevelOptions(
option['inner-options']
)
).map(
id =>
wp.customize(id) &&
wp
.customize(id)
.set(val[id])
)
// onChange()
}}
options={option['inner-options']}
value={
currentPanelValues ||
Object.keys(
wp.customize._value
).reduce(
(
finalValue,
currentValue
) => ({
...finalValue,
[currentValue]: wp.customize._value[
currentValue
]()
}),
{}
)
}
/>
))
}