-
- {t("search")}: {q || "—"}
-
-
- {q ? (
- <>
-
- {types.map((tp) => (
-
- ))}
-
-
-
- {resourceLangCodes.map((code) => (
-
- ))}
-
- >
- ) : null}
-
- {err ?
{err}
: null}
- {!q ?
{t("noResults")}
: null}
- {q && items.length === 0 && !err ? (
-
{t("noResults")}
- ) : null}
-
-
- {items.map((post) => (
-
- ))}
-
-
- );
+ const [sp] = useSearchParams();
+ const query = sp.toString();
+ return