import React, { Component } from "react";
import CommonUsers from "./common_users"
class PraiseUsers extends Component {

  componentDidMount = () => {
    const {projectDetail} = this.props;
    if(projectDetail){
      const { author, name} = projectDetail;
      document.title = `点赞用户-${author.name}/${name}`;
    }
  };
  render() {
    const { owner , projectsId } = this.props.match.params;
    return (
      <div >
        {projectsId &&  <CommonUsers user_type="stargazers" type_title="点赞列表" project_id={projectsId} current_user={this.props.current_user} owner={owner} />}
      </div>
    );
  }
}

export default PraiseUsers;
