Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (fontStyleWatcher) {
attachWidthWatcher(fontStyleWatcher.current as HTMLDivElement, updateInputWidth);
}
}, [autoFocus, fontStyleWatcher, inputRef, updateInputWidth]);
return (
{!hideIcon && (