(
)}
renderContent={() => (
<>
{!noShdowHover && (
{[
{ label: "Normal", value: "normal" },
{ label: "Hover", value: "hover" },
].map(({ value, label }) => (
))}
)}
setAttributes({ [`${controlName}inset`]: !inset })
}
/>
{(shadowType === "normal" || noShdowHover) && (
<>
setAttributes({
[`${controlName}shadowColor`]: shadowColor,
})
}
/>
setAttributes({
[`${controlName}hOffset`]: undefined,
})
}
>
setAttributes({
[`${controlName}hOffset`]: hOffset,
})
}
min={0}
max={200}
/>
setAttributes({
[`${controlName}vOffset`]: undefined,
})
}
>
setAttributes({
[`${controlName}vOffset`]: vOffset,
})
}
min={0}
max={200}
/>
setAttributes({ [`${controlName}blur`]: undefined })
}
>
setAttributes({
[`${controlName}blur`]: blur,
})
}
min={0}
max={200}
/>
setAttributes({
[`${controlName}spread`]: undefined,
})
}
>
setAttributes({
[`${controlName}spread`]: spread,
})
}
min={0}
max={200}
/>
>
)}
{shadowType === "hover" && !noShdowHover && (
<>
setAttributes({
[`${controlName}hoverShadowColor`]:
hoverShadowColor,
})
}
/>
setAttributes({
[`${controlName}hoverHOffset`]: undefined,
})
}
>
setAttributes({
[`${controlName}hoverHOffset`]: hoverHOffset,
})
}
min={0}
max={200}
/>
setAttributes({
[`${controlName}hoverVOffset`]: undefined,
})
}
>
setAttributes({
[`${controlName}hoverVOffset`]: hoverVOffset,
})
}
min={0}
max={200}
/>
setAttributes({
[`${controlName}hoverBlur`]: undefined,
})
}
>
setAttributes({
[`${controlName}hoverBlur`]: hoverBlur,
})
}
min={0}
max={200}
/>
setAttributes({
[`${controlName}hoverSpread`]: undefined,
})
}
>
setAttributes({
[`${controlName}hoverSpread`]: hoverSpread,
})
}
min={0}
max={200}
/>
setAttributes({
[`${controlName}shadowTransition`]:
shadowTransition,
})
}
step={0.01}
min={0}
max={5}
/>
>
)}
>
)}
/>