{/* Search row */}
{/* Toggle replace visibility */}
{t('editor.search.toggleReplace')}
{/* Search input */}
setSearchText(e.target.value)}
onKeyDown={handleSearchKeyDown}
spellCheck={false}
/>
{/* Toggle buttons */}
setCaseSensitive((prev) => !prev)}
tooltip="Match Case"
>
setWholeWord((prev) => !prev)}
tooltip="Match Whole Word"
>
setUseRegexp((prev) => !prev)}
tooltip="Use Regular Expression"
>
{/* Separator */}
{/* Match count */}
{matchCountText && (
{matchCountText}
)}
{/* Navigation */}
{t('editor.searchPanel.previousMatch')}{' '}
{SHORTCUT_PREVIOUS_MATCH}
{t('editor.searchPanel.nextMatch')}{' '}
{SHORTCUT_NEXT_MATCH}
{/* Close */}
{t('editor.searchPanel.close')}{' '}
{SHORTCUT_CLOSE}
{/* Replace row */}
{showReplace && (
{/* Spacer to align with search input */}
setReplaceText(e.target.value)}
onKeyDown={handleReplaceKeyDown}
spellCheck={false}
/>
{t('editor.searchPanel.replaceNext')}
{t('editor.searchPanel.replaceAll')}
)}