Files
Arkie-Library-Frontend/src/components/AssetStreamPage.tsx

20 lines
528 B
TypeScript
Raw Normal View History

2026-05-28 22:36:08 +08:00
import type { PostScope } from "../types/post";
import { MessageStream } from "./messageStream/MessageStream";
import { useSetPageTitle } from "./PageTitleContext";
2026-05-28 22:36:08 +08:00
type AssetStreamPageProps = {
title: string;
scope: PostScope;
};
export function AssetStreamPage({ title, scope }: AssetStreamPageProps) {
// 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>
<MessageStream scope={scope} />
2026-05-28 22:36:08 +08:00
</section>
);
}