mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-11 08:09:04 +01:00
27 lines
607 B
JavaScript
27 lines
607 B
JavaScript
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import { IntlProvider, addLocaleData } from 'react-intl';
|
||
|
import { getLocale } from '../locales';
|
||
|
import Video from '../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>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|