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