mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-09-22 15:02:53 +02:00
21 lines
506 B
JavaScript
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;
|