huridocs/uwazi

View on GitHub
app/react/Map/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
/* eslint-disable react/jsx-props-no-spreading */
import loadable from '@loadable/component';
import React from 'react';
import { Map, Layer } from 'app/Map/MapContainer';
import * as helper from './helper';

const LMap = loadable(async () => {
  const { LMap: LMapComponent } = await import(/* webpackChunkName: "LazyLoadMap" */ './LMap');
  return (props: any) => <LMapComponent {...props} />;
});

export { default as Markers } from './Markers';
export { helper, LMap, Map };
export type { Layer };