digitransit-ui/app/component/EmbeddedSearchContainer.js
2022-02-17 13:08:15 +02:00

21 lines
506 B
JavaScript

import React from 'react';
import { matchShape } from 'found';
import LazilyLoad, { importLazy } from './LazilyLoad';
const modules = {
EmbeddedSearch: () => importLazy(import('./EmbeddedSearch')),
};
const EmbeddedSearchContainer = props => {
return (
<LazilyLoad modules={modules}>
{({ EmbeddedSearch }) => <EmbeddedSearch match={props.match} />}
</LazilyLoad>
);
};
EmbeddedSearchContainer.propTypes = {
match: matchShape.isRequired,
};
export default EmbeddedSearchContainer;