{
setQuery(e.target.value);
}}
onKeyPress={(e) => {
if (e.key === "Enter" && query) {
// navigate with router lib
navigate(`/search?q=${encodeURIComponent(query)}`);
setReFetch(true);
setBack(`/search?q=${encodeURIComponent(query)}`);
}
}}
/>
)}
{useMemo(
() => (