bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/screenreader-alert/container.jsx

20 lines
504 B
JavaScript

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import ScreenReaderAlert from './component';
import ScreenReaderAlertCollection from './collection';
const ScreenReaderAlertContainer = ({ ...props }) => {
return (
<ScreenReaderAlert
{...{ ...props }}
/>
);
};
export default withTracker(() => {
const olderAlert = ScreenReaderAlertCollection
.findOne({}, { sort: { insertTime: +1 } });
return { olderAlert };
})(ScreenReaderAlertContainer);