import React from 'react';
import Loadable from 'react-loadable';
import {withNamespaces} from 'react-i18next';
import Loading from '../../component/Loading';

const EditorLoader = Loadable({
    loader: () => import('./Editor'),
    loading: (props) => <Loading {...props} name='SchemaEditor'/>,
});

export default withNamespaces('defaults--schema-editor')(EditorLoader);