logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

video_container.js (607B)


  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import { IntlProvider, addLocaleData } from 'react-intl';
  4. import { getLocale } from '../locales';
  5. import Video from '../features/video';
  6. const { localeData, messages } = getLocale();
  7. addLocaleData(localeData);
  8. export default class VideoContainer extends React.PureComponent {
  9. static propTypes = {
  10. locale: PropTypes.string.isRequired,
  11. };
  12. render () {
  13. const { locale, ...props } = this.props;
  14. return (
  15. <IntlProvider locale={locale} messages={messages}>
  16. <Video {...props} />
  17. </IntlProvider>
  18. );
  19. }
  20. }