import type { PostScope } from "../types/post";
import { MessageStream } from "./messageStream/MessageStream";
import { useSetPageTitle } from "./PageTitleContext";

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);
  return (
    <section>
      <MessageStream scope={scope} />
    </section>
  );
}
