import BasicWindow from "../../Components/BasicWindow";
import Button from "../../Components/Button";
import BackButton from "../../Components/BackButton";
import { Link, useParams } from "react-router-dom";
import ProjectMembers from "../../Components/ProjectMembers";

function PMProjectMembers(): JSX.Element {
  const { projectName } = useParams();
  const content = (
    <>
      <ProjectMembers />
    </>
  );

  const buttons = (
    <>
      <Link to={`/PMtimeactivity/${projectName}`}>
        <Button
          text="Time / Activity"
          onClick={(): void => {
            return;
          }}
          type={"button"}
        />
      </Link>
      <BackButton />
    </>
  );

  return <BasicWindow content={content} buttons={buttons} />;
}
export default PMProjectMembers;
