import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { injectIntl, FormattedMessage } from 'react-intl' import ImmutablePureComponent from 'react-immutable-pure-component' import ImmutablePropTypes from 'react-immutable-proptypes' import debounce from 'lodash.debounce' import { me } from '../initial_state' import { fetchMutes, expandMutes } from '../actions/mutes' import Account from '../components/account' import BlockHeading from '../components/block_heading' import Button from '../components/button' import Form from '../components/form' import Switch from '../components/switch' import Text from '../components/text' import Divider from '../components/divider' class MessagesSettings extends ImmutablePureComponent { componentWillMount() { this.props.onFetchMutes() } handleLoadMore = debounce(() => { this.props.onExpandMutes() }, 300, { leading: true }) render() { const { accountIds, hasMore, isLoading, } = this.props return (