mastodon-docker-playground/app/javascript/flavours/glitch/containers/video_container.js

27 lines
626 B
JavaScript
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider, addLocaleData } from 'react-intl';
2017-11-18 03:11:18 +00:00
import { getLocale } from 'mastodon/locales';
2017-12-04 07:26:40 +00:00
import Video from 'flavours/glitch/features/video';
const { localeData, messages } = getLocale();
addLocaleData(localeData);
export default class VideoContainer extends React.PureComponent {
static propTypes = {
locale: PropTypes.string.isRequired,
};
render () {
const { locale, ...props } = this.props;
return (
<IntlProvider locale={locale} messages={messages}>
<Video {...props} />
</IntlProvider>
);
}
}