2026-05-28 22:36:08 +08:00
|
|
|
import type { PostScope } from "../types/post";
|
|
|
|
|
import { MessageStream } from "./messageStream/MessageStream";
|
2026-05-30 02:37:30 +08:00
|
|
|
import { useSetPageTitle } from "./PageTitleContext";
|
2026-05-28 22:36:08 +08:00
|
|
|
|
|
|
|
|
type AssetStreamPageProps = {
|
|
|
|
|
title: string;
|
|
|
|
|
scope: PostScope;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export function AssetStreamPage({ title, scope }: AssetStreamPageProps) {
|
2026-05-30 02:37:30 +08:00
|
|
|
// Show the page name in the global header instead of a separate title row,
|
|
|
|
|
// saving vertical space.
|
|
|
|
|
useSetPageTitle(title);
|
2026-05-28 22:36:08 +08:00
|
|
|
return (
|
|
|
|
|
<section>
|
2026-05-30 02:37:30 +08:00
|
|
|
<MessageStream scope={scope} />
|
2026-05-28 22:36:08 +08:00
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|