2022-03-25 03:05:20 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2022-04-12 21:53:53 +08:00
|
|
|
import Service from './service';
|
2022-03-25 03:05:20 +08:00
|
|
|
import Speech from './component';
|
|
|
|
|
|
|
|
const Container = (props) => <Speech {...props} />;
|
|
|
|
|
|
|
|
export default withTracker(() => {
|
|
|
|
const {
|
|
|
|
locale,
|
2022-03-29 03:23:46 +08:00
|
|
|
connected,
|
|
|
|
talking,
|
2022-03-25 03:05:20 +08:00
|
|
|
} = Service.getStatus();
|
|
|
|
|
|
|
|
return {
|
|
|
|
locale,
|
2022-03-29 03:23:46 +08:00
|
|
|
connected,
|
|
|
|
talking,
|
2022-03-25 03:05:20 +08:00
|
|
|
};
|
|
|
|
})(Container);
|