import { useParams } from "react-router-dom";

import AnthologyList from "../../../components/article/AnthologyList";
import BlogNav from "../../../components/blog/BlogNav";

const Widget = () => {
  // TODO
  const { studio } = useParams(); //url 参数

  return (
    <>
      <BlogNav selectedKey="anthology" studio={studio ? studio : ""} />
      <AnthologyList view="public_studio" id={studio ? studio : ""} />
    </>
  );
};

export default Widget;
