{social_icons_color === 'default' ? (
{
setInitialColor(colors.initialColor)
setHoverColor(colors.hoverColor)
}}
panelId={clientId}
settings={[
{
colorValue: initialColor.color,
enableAlpha: true,
label: __('Initial', 'blocksy-companion'),
onColorChange: (value) =>
setInitialColor(
value || colors.initialColor
),
},
{
colorValue: hoverColor.color,
enableAlpha: true,
label: __('Hover', 'blocksy-companion'),
onColorChange: (value) =>
setHoverColor(value || colors.hoverColor),
},
]}
/>
{social_type !== 'simple' &&
(social_icons_fill === 'solid' ? (
{
setBackgroundColor(colors.backgroundColor)
setBackgroundHoverColor(
colors.backgroundHoverColor
)
}}
panelId={clientId}
settings={[
{
colorValue: backgroundColor.color,
enableAlpha: true,
label: __('Initial', 'blocksy-companion'),
onColorChange: (value) =>
setBackgroundColor(
value || colors.backgroundColor
),
},
{
colorValue: backgroundHoverColor.color,
enableAlpha: true,
label: __('Hover', 'blocksy-companion'),
onColorChange: (value) =>
setBackgroundHoverColor(
value ||
colors.backgroundHoverColor
),
},
]}
/>
) : (
{
setBorderColor(colors.borderColor)
setBorderHoverColor(colors.borderHoverColor)
}}
panelId={clientId}
settings={[
{
colorValue: borderColor.color,
enableAlpha: true,
label: __('Initial', 'blocksy-companion'),
onColorChange: (value) =>
setBorderColor(
value || colors.borderColor
),
},
{
colorValue: borderHoverColor.color,
enableAlpha: true,
label: __('Hover', 'blocksy-companion'),
onColorChange: (value) =>
setBorderHoverColor(
value || colors.borderHoverColor
),
},
]}
/>
))}
) : null}
)
}
export default withColors(
{ initialColor: 'color' },
{ hoverColor: 'color' },
{ backgroundColor: 'color' },
{ backgroundHoverColor: 'color' },
{ borderColor: 'color' },
{ borderHoverColor: 'color' }
)(Edit)