{columns.map((column, columnIndex) => (!compact || columnIndex === currentColumnIndex) &&
{ if (event.target === event.currentTarget) { setActiveColumn(columnIndex); setActiveIndex(0); } }}
onKeyDown={event => {
if (event.target !== event.currentTarget || event.altKey || event.metaKey || event.ctrlKey || pickingFolder) return;
const count = column.options.length;
if (count && (event.key === "Home" || event.key === "End")) {
event.preventDefault(); setHighlightActive(true); setActiveColumn(columnIndex);
setActiveIndex(event.key === "Home" ? 0 : count - 1);
} else if (count && event.key === "Enter") {
event.preventDefault(); activate(column.options[Math.min(activeIndex, count - 1)], columnIndex);
}
}}
renderOption={(option, index) =>
{favoriteButton(option.path)}
}>
{columnIndex === currentColumnIndex && loading && }
{columnIndex === currentColumnIndex && canBrowse && !loading && directory && !column.options.length && !displayedError && {t(folderQuery || directory.partial ? "workspace.picker.noMatches" : "workspace.picker.empty")}
}
{columnIndex === currentColumnIndex && directory?.truncated && {t("workspace.picker.truncated")}
}
{columnIndex === currentColumnIndex && displayedError && {displayedError}
{directoryError &&
}
}
)}