(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1139:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return m}));var a=s(0),r=s(1),i=s.n(r),n=s(8),o=s(4),d=s(7),c=s.n(d),u=s(1337);class m extends i.a.PureComponent{constructor(){super(...arguments),this.state={loading:!0,data:null}}componentDidMount(){const{limit:e}=this.props;Object(n.a)().get("/api/v1/admin/trends/tags",{params:{limit:e}}).then((e=>{this.setState({loading:!1,data:e.data})})).catch((e=>{console.error(e)}))}render(){const{limit:e}=this.props,{loading:t,data:s}=this.state;let r;return r=t?Object(a.a)("div",{},void 0,Array.from(Array(e)).map(((e,t)=>Object(a.a)(u.b,{},t)))):Object(a.a)("div",{},void 0,s.map((e=>Object(a.a)(u.b,{name:e.name,href:"/admin/tags/"+e.id,people:1*e.history[0].accounts+1*e.history[1].accounts,uses:1*e.history[0].uses+1*e.history[1].uses,history:e.history.reverse().map((e=>e.uses)),className:c()(e.requires_review&&"trends__item--requires-review",!e.trendable&&!e.requires_review&&"trends__item--disabled")},e.name)))),Object(a.a)("div",{className:"trends trends--compact"},void 0,Object(a.a)("h4",{},void 0,Object(a.a)(o.b,{id:"trends.trending_now",defaultMessage:"Trending now"})),r)}}}}]);
//# sourceMappingURL=6-7e9088b21f1dd9aca757.chunk.js.map