mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
24 lines
568 B
JavaScript
24 lines
568 B
JavaScript
import React from "react"
|
|
import { Button } from "antd"
|
|
import classnames from "classnames"
|
|
|
|
import "./index.less"
|
|
|
|
export default (props) => {
|
|
return <div className="followButton">
|
|
<div className="counter">
|
|
{props.count}
|
|
</div>
|
|
<Button
|
|
type="ghost"
|
|
onClick={props.onClick}
|
|
className={classnames(
|
|
"btn",
|
|
{ ["followed"]: props.followed }
|
|
)}
|
|
>
|
|
<span>{props.followed ? "Following" : "Follow"}</span>
|
|
</Button>
|
|
</div>
|
|
}
|