import React, { PureComponent } from 'react'; import { withTracker } from 'meteor/react-meteor-data'; import Note from './component'; import NoteService from './service'; class NoteContainer extends PureComponent { render() { return ( {this.props.children} ); } } export default withTracker(() => { const isLocked = NoteService.isLocked(); const isRTL = document.documentElement.getAttribute('dir') === 'rtl'; return { isLocked, isRTL, }; })(NoteContainer);