import useMarkers from "../hooks/selectFromDB"; function isRequestedValue( item, renderRain, renderFlood, renderRiver, renderPluviometer, renderOfficialPluviometer ) { return ( (item.name == "pluviometer" && renderPluviometer) || (item.name == "officialPluviometer") & renderOfficialPluviometer || (item.name == "rain" && renderRain) || (item.name == "river" && renderRiver) || (item.name == "flood" && renderFlood) ); } function MapMarkerList({ markers, renderRain = true, renderFlood = true, renderRiver = true, renderPluviometer = true, renderOfficialPluviometer = true, }) { // FIXME: Resolve this later!!! return markers.markers; // return [...markers.markers].filter(([k, item]) => { // isRequestedValue( // item, // renderRain, // renderFlood, // renderRiver, // renderPluviometer, // renderOfficialPluviometer // ) // } // ); } export { MapMarkerList };