2026-05-27 11:33:48 +08:00
|
|
|
import { useSearchParams } from "react-router-dom";
|
2026-05-28 22:36:08 +08:00
|
|
|
import { AssetStreamPage } from "../../components/AssetStreamPage";
|
2026-05-26 14:46:05 +08:00
|
|
|
import { useI18n } from "../../i18n";
|
2026-05-16 00:18:22 +08:00
|
|
|
|
|
|
|
|
export function Browse() {
|
2026-05-28 16:49:30 +08:00
|
|
|
const { t } = useI18n();
|
2026-05-27 11:33:48 +08:00
|
|
|
const [sp] = useSearchParams();
|
2026-05-28 16:28:50 +08:00
|
|
|
const sort = sp.get("sort") || "";
|
2026-05-31 03:10:56 +08:00
|
|
|
const title =
|
|
|
|
|
sort === "latest"
|
2026-05-28 16:49:30 +08:00
|
|
|
? t("latest")
|
|
|
|
|
: sort === "recommended"
|
|
|
|
|
? t("official")
|
|
|
|
|
: sort === "popular"
|
|
|
|
|
? t("popular")
|
2026-05-28 16:28:50 +08:00
|
|
|
: t("all");
|
2026-05-28 22:36:08 +08:00
|
|
|
return <AssetStreamPage title={title} scope={{ kind: "all" }} />;
|
2026-05-16 00:18:22 +08:00
|
|
|
}
|