bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/quick-poll-dropdown/container.jsx

19 lines
714 B
React
Raw Normal View History

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import { injectIntl } from 'react-intl';
import QuickPollDropdown from './component';
import { LayoutContextFunc } from '../../layout/context';
import PollService from '/imports/ui/components/poll/service';
2021-05-18 04:25:07 +08:00
const QuickPollDropdownContainer = (props) => {
const { layoutContextSelector } = LayoutContextFunc;
const layoutContextDispatch = layoutContextSelector.layoutDispatch();
2021-08-05 19:03:24 +08:00
return <QuickPollDropdown {...{ layoutContextDispatch, ...props }} />;
2021-05-18 04:25:07 +08:00
};
export default withTracker(() => ({
activePoll: Session.get('pollInitiated') || false,
pollTypes: PollService.pollTypes,
}))(injectIntl(QuickPollDropdownContainer));