diff --git a/extensions/blocks/podcast-player/edit.js b/extensions/blocks/podcast-player/edit.js
index d792ef335b4f6..6ebfabafe5239 100644
--- a/extensions/blocks/podcast-player/edit.js
+++ b/extensions/blocks/podcast-player/edit.js
@@ -15,6 +15,7 @@ import {
RangeControl,
TextControl,
Toolbar,
+ ToolbarGroup,
withNotices,
ToggleControl,
Spinner,
@@ -235,16 +236,6 @@ const PodcastPlayerEdit = ( {
);
}
- const toolbarControls = [
- {
- title: __( 'Edit Podcast Feed URL', 'jetpack' ),
- onClick: () => setIsEditing( true ),
- extraProps: {
- children: __( 'Replace', 'jetpack' ),
- },
- },
- ];
-
// Loading state for fetching the feed.
if ( ! feedData.tracks || ! feedData.tracks.length ) {
return (
@@ -266,7 +257,29 @@ const PodcastPlayerEdit = ( {
return (
<>
-
+ { /* @todo Fallback can be removed when WP 5.4 is the minimum supported version. */ }
+ { ToolbarGroup ? (
+
+
+
+ ) : (
+ setIsEditing( true ),
+ extraProps: {
+ children: __( 'Replace', 'jetpack' ),
+ },
+ },
+ ] }
+ />
+ ) }