Files
Arkie-Library-Frontend/src/pages/Browse/index.tsx

18 lines
584 B
TypeScript
Raw Normal View History

2026-05-27 11:33:48 +08:00
import { useSearchParams } from "react-router-dom";
2026-05-26 14:46:05 +08:00
import { MessageStream } from "../../components/messageStream/MessageStream";
import { useI18n } from "../../i18n";
2026-05-16 00:18:22 +08:00
export function Browse() {
const { t } = useI18n();
2026-05-27 11:33:48 +08:00
const [sp] = useSearchParams();
const q = sp.get("q") || "";
2026-05-16 00:18:22 +08:00
return (
<section className="space-y-3">
<h1 className="mx-auto max-w-full px-3 text-2xl font-bold md:max-w-[820px] lg:max-w-[1080px] xl:max-w-[1180px]">
2026-05-27 11:33:48 +08:00
{q ? `${t("search")}: ${q}` : t("all")}
</h1>
<MessageStream scope={{ kind: "all" }} />
</section>
2026-05-16 00:18:22 +08:00
);
}