Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onClick={ onClick }
className={ classnames( 'block-editor-link-control__search-item', {
'is-selected': isSelected,
'is-url': isURL,
'is-entity': ! isURL,
} ) }
>
{ isURL && (
) }
<span>
<span>
</span>
<span aria-hidden="{">
{ ! isURL && ( safeDecodeURI( suggestion.url ) || '' ) }
{ isURL && (
__( 'Press ENTER to add this link' )
) }
</span>
</span>
{ suggestion.type && (
<span>{ suggestion.type }</span>
) }
);
};
label={ ariaLabel }
onCopy={ () => this.setState( { isCopied: true } ) }
aria-disabled={ isCopied }
icon="admin-links"
/>
<span>{ __( 'Permalink:' ) }</span>
{ ! isEditingPermalink &&
this.linkElement = linkElement }
>
{ safeDecodeURI( samplePermalink ) }
}
{ isEditingPermalink &&
this.setState( { isEditingPermalink: false } ) }
/>
}
{ isEditable && ! isEditingPermalink &&
<button> this.setState( { isEditingPermalink: true } ) }</button>