import { h, Component } from 'preact'; import Comment from 'components/comment'; export default class Thread extends Component { constructor(props) { super(props); this.state = { hidden: false, }; this.hide = this.hide.bind(this); } hide() { this.setState({ hidden: true }); } render(props, { hidden }) { const { data: { comment, replies = [] }, mix, mods = {} } = props; return (