rgncycle-ui/app/components/map.jsx

19 lines
338 B
React
Raw Normal View History

2023-04-21 14:44:43 +02:00
import React from 'react';
2023-04-21 15:18:02 +02:00
import PropTypes from 'prop-types';
import EntitiesMap from './map/entities-map';
2023-04-21 14:44:43 +02:00
//destructure props
2023-04-21 15:18:02 +02:00
export default function Map({entities}){
2023-04-21 14:44:43 +02:00
return (
<>
2023-04-21 15:18:02 +02:00
<h2>Map</h2>
<h3>Entity Map</h3>
<EntitiesMap entities={entities}/>
2023-04-21 14:44:43 +02:00
</>
);
}
2023-04-21 15:18:02 +02:00
Map.propTypes = {
entities: PropTypes.array,
};