-
+ {
+ setAttributes( {
+ logoUrl: null,
+ mediaItemData: null,
+ } );
+ } }
+ >
+ !! logoUrl && ! canUserEdit }
+ label={ __( 'Preview Logo (Read-only)' ) }
+ resetAll={ () => setAttributes( { logoUrl: null } ) }
+ >
{ ! canUserEdit && !! logoUrl && (
) }
+
+ !! logoUrl && canUserEdit }
+ label={ __( 'Replace Logo' ) }
+ resetAll={ () => setAttributes( { logoUrl: null } ) }
+ >
{ canUserEdit && !! logoUrl && (
) }
+
+ ! logoUrl && canUserEdit }
+ label={ __( 'Upload Logo' ) }
+ resetAll={ () => setAttributes( { logoUrl: null } ) }
+ >
{ canUserEdit && ! logoUrl && (
) }
-
-
+
+