mirror of
https://github.com/wassname/talk.git
synced 2026-07-18 12:40:13 +08:00
29 lines
635 B
JavaScript
29 lines
635 B
JavaScript
import {gql} from 'react-apollo';
|
|
import withQuery from 'coral-framework/hocs/withQuery';
|
|
import Header from '../components/ui/Header';
|
|
|
|
export default withQuery(gql`
|
|
query TalkAdmin_Header {
|
|
__typename
|
|
premodCount: commentCount(query: {
|
|
statuses: [PREMOD]
|
|
})
|
|
reportedCount: commentCount(query: {
|
|
statuses: [NONE, PREMOD, SYSTEM_WITHHELD],
|
|
action_type: FLAG
|
|
})
|
|
flaggedUsernamesCount: userCount(query: {
|
|
action_type: FLAG,
|
|
state: {
|
|
status: {
|
|
username: [SET, CHANGED]
|
|
}
|
|
}
|
|
})
|
|
}
|
|
`, {
|
|
options: {
|
|
pollInterval: 10000
|
|
}
|
|
})(Header);
|