Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getHeight = () => {
if (height === null || height === undefined) {
return '100%';
}
return processSize(height);
};
let borderColor = NeutralColors.gray120;
if (hovered) {
borderColor = NeutralColors.gray160;
}
if (isInvalid) {
borderColor = SharedColors.red20;
}
return (
<div style="{{"> setHovered(true)}
onMouseLeave={() => setHovered(false)}
>
</div>
<div style="{{"> setHovered(true)}
onMouseLeave={() => setHovered(false)}
>
</div>
{isInvalid && (
<div style="{{">
<span>{errorHelp}</span>
</div>
)}
);
}