2021-10-14 21:44:59 +03:00
|
|
|
import PropTypes from 'prop-types';
|
2023-05-23 18:15:17 +03:00
|
|
|
import { PureComponent } from 'react';
|
|
|
|
|
2023-06-02 16:00:27 +03:00
|
|
|
import { IntlProvider } from 'mastodon/locales';
|
2021-10-14 21:44:59 +03:00
|
|
|
|
2023-05-23 11:52:27 +03:00
|
|
|
export default class AdminComponent extends PureComponent {
|
2021-10-14 21:44:59 +03:00
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
render () {
|
2023-06-02 16:00:27 +03:00
|
|
|
const { children } = this.props;
|
2021-10-14 21:44:59 +03:00
|
|
|
|
|
|
|
return (
|
2023-06-02 16:00:27 +03:00
|
|
|
<IntlProvider>
|
2021-10-14 21:44:59 +03:00
|
|
|
{children}
|
|
|
|
</IntlProvider>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|