@@ -28,8 +28,6 @@ interface EntityStatusProps {
2828 clipboardButtonAlwaysVisible ?: boolean ;
2929
3030 className ?: string ;
31-
32- additionalControls ?: React . ReactNode ;
3331}
3432
3533export function EntityStatus ( {
@@ -50,8 +48,6 @@ export function EntityStatus({
5048 clipboardButtonAlwaysVisible = false ,
5149
5250 className,
53-
54- additionalControls,
5551} : EntityStatusProps ) {
5652 const renderIcon = ( ) => {
5753 if ( ! showStatus ) {
@@ -93,22 +89,29 @@ export function EntityStatus({
9389 { label }
9490 </ span >
9591 ) }
96- < span className = { b ( 'link' , { 'with-left-trim' : withLeftTrim } ) } > { renderLink ( ) } </ span >
97- < div className = { b ( 'controls-wrapper' ) } >
98- { hasClipboardButton && (
99- < ClipboardButton
100- text = { name }
101- size = "xs"
102- view = "normal"
103- className = { b ( 'clipboard-button' , {
104- visible : clipboardButtonAlwaysVisible ,
105- } ) }
106- />
107- ) }
108- { additionalControls && (
109- < span className = { b ( 'additional-controls' ) } > { additionalControls } </ span >
110- ) }
111- </ div >
92+ { ( path || name ) && (
93+ < div className = { b ( 'wrapper' ) } >
94+ < span className = { b ( 'link' , { 'with-left-trim' : withLeftTrim } ) } >
95+ { renderLink ( ) }
96+ </ span >
97+ { hasClipboardButton && (
98+ < div
99+ className = { b ( 'controls-wrapper' , {
100+ visible : clipboardButtonAlwaysVisible ,
101+ } ) }
102+ >
103+ < ClipboardButton
104+ text = { name }
105+ size = "xs"
106+ view = "normal"
107+ className = { b ( 'clipboard-button' , {
108+ visible : clipboardButtonAlwaysVisible ,
109+ } ) }
110+ />
111+ </ div >
112+ ) }
113+ </ div >
114+ ) }
112115 </ div >
113116 ) ;
114117}
0 commit comments