{"size": 913, "ext": "js", "max_stars_repo_path": "front/src/routes/integration/all/caldav/share-page/index.js", "max_stars_repo_name": "svgaman/Gladys", "max_stars_repo_stars_event_min_datetime": "2015-01-18T23:39:32.000Z", "max_stars_repo_stars_event_max_datetime": "2019-01-07T07:38:57.000Z", "max_issues_repo_path": "front/src/routes/integration/all/caldav/share-page/index.js", "max_issues_repo_name": "svgaman/Gladys", "max_issues_repo_issues_event_min_datetime": "2015-01-31T12:23:43.000Z", "max_issues_repo_issues_event_max_datetime": "2018-12-23T11:31:04.000Z", "max_forks_repo_path": "front/src/routes/integration/all/caldav/share-page/index.js", "max_forks_repo_name": "svgaman/Gladys", "max_forks_repo_forks_event_min_datetime": "2015-03-15T11:43:45.000Z", "max_forks_repo_forks_event_max_datetime": "2018-12-30T11:17:44.000Z"}
{"max_stars_count": 1117, "max_issues_count": 350, "max_forks_count": 233, "avg_line_length": 32.6071428571, "max_line_length": 113, "alphanum_fraction": 0.7031763417}
import { Component } from 'preact';
import { connect } from 'unistore/preact';
import actions from './actions';
import CalDAVPage from '../CalDAV';
import ShareTab from './ShareTab';
import { RequestStatus } from '../../../../../utils/consts';
import withIntlAsProp from '../../../../../utils/withIntlAsProp';

@connect('gladysUsers,caldavCalendars,caldavSaveSharingStatus,caldavGetSettingsStatus,calendarsSharing', actions)
class SharePage extends Component {
  componentWillMount() {
    this.props.getCaldavSetting();
  }

  render(props, {}) {
    const loading =
      props.caldavSaveSharingStatus === RequestStatus.Getting ||
      props.caldavGetSettingsStatus === RequestStatus.Getting;
    return (
      <CalDAVPage>
        <ShareTab {...props} loading={loading} dictionary={this.props.intl.dictionary.integration.caldav} />
      </CalDAVPage>
    );
  }
}

export default withIntlAsProp(SharePage);
