{
+ setGroupStates(
+ groupStates.map((state) => {
+ if (
+ state.channel_group ===
+ group.channel_group
+ ) {
+ return {
+ ...state,
+ custom_properties: {
+ ...state.custom_properties,
+ custom_logo_id:
+ logoItem.id,
+ },
+ logoPopoverOpened: false,
+ };
+ }
+ return state;
+ })
+ );
+ }}
+ onMouseEnter={(e) => {
+ e.currentTarget.style.backgroundColor =
+ 'rgb(68, 68, 68)';
+ }}
+ onMouseLeave={(e) => {
+ e.currentTarget.style.backgroundColor =
+ 'transparent';
+ }}
+ >
+
+
{
+ if (e.target.src !== logo) {
+ e.target.src = logo;
+ }
+ }}
+ />
+
+ {logoItem.name || 'Default'}
+
+
+
+ );
+ }}
+