Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const helpTextString = Array.isArray( helpText ) ? helpText[ 0 ] : helpText;
const helpLink = ( Array.isArray( helpText ) && !! helpText[ 1 ] )
? helpText[ 1 ]
: undefined;
return (
<div>
{ 'heading' !== fieldType && (
<div name="">
<label name="">
<span>
{ required && ( <span>{ '\u00A0' /* */ }*</span> ) }
</span></label>
{ shouldShowHelpText && (
<span style="{">
{ '\u00A0' /* */ }
</span>
) }
</div>
) }</div>