{"size": 280, "ext": "js", "max_stars_repo_path": "bmc-nodejs/src/views/components/AuthButton/index.js", "max_stars_repo_name": "mizhousoft/mizhousoft-bmc", "max_stars_repo_stars_event_min_datetime": "2021-06-01T07:11:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-22T03:27:12.000Z", "max_issues_repo_path": "bmc-nodejs/src/views/components/AuthButton/index.js", "max_issues_repo_name": "mizhousoft/mizhousoft-bmc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "bmc-nodejs/src/views/components/AuthButton/index.js", "max_forks_repo_name": "mizhousoft/mizhousoft-bmc", "max_forks_repo_forks_event_min_datetime": "2021-06-02T01:18:02.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-02T01:18:02.000Z"}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.4545454545, "max_line_length": 59, "alphanum_fraction": 0.6607142857}
import React from 'react';
import { Button } from 'antd';
import SessionStore from '@/session/SessionStore';

export default function AuthButton({ authId, ...others }) {
    if (SessionStore.hasPermission(authId)) {
        return <Button {...others} />;
    }
    return null;
}
