{sprintf(
__('Display Conditions', 'blocksy-companion')
)}
{__(
'Add one or more conditions in order to display your header.',
'blocksy-companion'
)}
{
setConditions((localConditions) => [
...(
localConditions || conditions
).filter(({ id }) => id !== headerId),
{
id: headerId,
conditions: cond,
},
])
}}
options={{
conditions: {
type: 'blocksy-display-condition',
design: 'none',
value: [],
design: 'none',
label: false,
},
}}
value={{
conditions: (
(localConditions || conditions).find(
({ id }) => id === headerId
) || { conditions: [] }
).conditions,
}}
hasRevertButton={false}
/>
)}
/>