mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
16 lines
358 B
JavaScript
16 lines
358 B
JavaScript
import React from 'react';
|
|
import withTags from './withTags';
|
|
|
|
class FeaturedButton extends React.Component {
|
|
render() {
|
|
const {alreadyTagged, deleteTag, postTag} = this.props;
|
|
return (
|
|
<button onClick={alreadyTagged ? deleteTag : postTag}>
|
|
Feature
|
|
</button>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default withTags('featured')(FeaturedButton);
|
|
|