This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2021-10-14 11:44:59 -07:00
|
|
|
import PropTypes from 'prop-types';
|
2023-05-28 07:38:10 -07:00
|
|
|
import { PureComponent } from 'react';
|
|
|
|
|
2023-06-02 06:00:27 -07:00
|
|
|
import { IntlProvider } from 'flavours/glitch/locales';
|
2021-10-14 11:44:59 -07:00
|
|
|
|
2023-05-28 05:18:23 -07:00
|
|
|
export default class AdminComponent extends PureComponent {
|
2021-10-14 11:44:59 -07:00
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
render () {
|
2023-06-02 06:00:27 -07:00
|
|
|
const { children } = this.props;
|
2021-10-14 11:44:59 -07:00
|
|
|
|
|
|
|
return (
|
2023-06-02 06:00:27 -07:00
|
|
|
<IntlProvider>
|
2021-10-14 11:44:59 -07:00
|
|
|
{children}
|
|
|
|
</IntlProvider>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|