Files
Arkie-Library-Frontend/src/pages/Browse/index.tsx
2026-05-31 03:10:56 +08:00

19 lines
543 B
TypeScript

import { useSearchParams } from "react-router-dom";
import { AssetStreamPage } from "../../components/AssetStreamPage";
import { useI18n } from "../../i18n";
export function Browse() {
const { t } = useI18n();
const [sp] = useSearchParams();
const sort = sp.get("sort") || "";
const title =
sort === "latest"
? t("latest")
: sort === "recommended"
? t("official")
: sort === "popular"
? t("popular")
: t("all");
return <AssetStreamPage title={title} scope={{ kind: "all" }} />;
}