import { useRouter } from "next/router";
import React from "react";
import CommentScroller from "../components/CommentScroller";

const ItemPage = () => {
  const router = useRouter();

  const {
    query: { id: storyId },
  } = router;

  if (!storyId) {
    return <></>;
  }

  return <CommentScroller storyId={storyId} />;
};

export default ItemPage;
