| 12345678910111213141516171819202122232425262728293031 |
- import { isServer } from '@growi/core/dist/utils';
- import { Container } from 'unstated';
- /**
- * Service container for admin app setting page (AppSettings.jsx)
- * @extends {Container} unstated Container
- */
- export default class AdminImportContainer extends Container {
- constructor(appContainer) {
- super();
- if (isServer()) {
- return;
- }
- this.appContainer = appContainer;
- this.state = {
- retrieveError: null,
- };
- }
- /**
- * Workaround for the mangling in production build to break constructor.name
- */
- static getClassName() {
- return 'AdminImportContainer';
- }
- }
|