mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
24 lines
541 B
TypeScript
24 lines
541 B
TypeScript
|
import * as React from 'react';
|
||
|
import classNames from 'classnames';
|
||
|
import GitHubButton from 'react-github-button';
|
||
|
import './Github.less';
|
||
|
|
||
|
export interface GithubProps {
|
||
|
responsive: null | 'narrow' | 'crowded';
|
||
|
}
|
||
|
|
||
|
export default ({ responsive }: GithubProps) => {
|
||
|
return (
|
||
|
<GitHubButton
|
||
|
id="github-btn"
|
||
|
className={classNames({
|
||
|
'responsive-mode': responsive,
|
||
|
[`responsive-${responsive}`]: responsive,
|
||
|
})}
|
||
|
type="stargazers"
|
||
|
namespace="ant-design"
|
||
|
repo="ant-design"
|
||
|
/>
|
||
|
);
|
||
|
};
|