<commit_before>import Thread from './Thread'
import threadConnect from './ThreadHOC'

export default threadConnect(Thread)<commit_msg>feat(Thread): Connect to redux store<commit_after>import Thread from './Thread'

import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

import {
    closeThread,
    monitorThread,
    unmonitorThread,
    scrollHeader,
    toggleHeaderPanel
} from '~/redux/actions';

function mapStateToProps({ status, thread, display }) {
    return {
        isThreadOpen: display.isThreadOpen,
        isCommentPanelOpen: display.isCommentPanelOpen,
        isDrawerOpen: display.isDrawerOpen,
        boardID: status.boardID,
        threadID: status.threadID,
        ...thread
    }
}

function mapDispatchToProps(dispatch) {
    return bindActionCreators({
        closeThread,
        monitorThread,
        unmonitorThread,
        scrollHeader,
        toggleHeaderPanel
    }, dispatch)
}

export default connect(mapStateToProps, mapDispatchToProps)(Thread)
{'fraction_non_alphanumeric': 0.09055118110236221, 'fraction_numerical': 0.0, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4010788', 'n_tokens_mistral': 281, 'n_tokens_neox': 278, 'n_words': 65}