Component: SearchResults
A component is required to display the current search criteria and result counts at the top of the EventListing
component. This component will display the details of the current search criteria: the magnitude and range. This component will display the number of events found in total, as well as the number currently visible within the map extent.
Acceptance Criteria:
- Should accept an
EventGeo
object as input - Should accept an
EventFilter
object as input - Should accept "TBD model" object as input (for "currently displayed" on map details)
- Should display a formatted string for current criteria (from
EventFilter
):${range}, ${magnitude} U.S.
- Should display a formatted string for number of quakes:
- If list shows only map features:
${mapCount} of ${totalCount} earthquakes in map area.
- If list shows all features:
${totalCount} earthquakes.
- If list shows only map features: