# elasticpress/4.4.0/assets/js/status-report/components/reports.js

ElasticPress, version 4.4.0. 23 lines.

- Page: https://pluginprobe.com/plugins/elasticpress/4.4.0/code/assets/js/status-report/components/reports.js
- Raw: https://pluginprobe.com/plugins/elasticpress/4.4.0/raw/assets/js/status-report/components/reports.js
- Modified: 2022-11-29T18:22:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elasticpress/4.4.0/code/assets/js/status-report/components/reports.js#L10-L20`.

```javascript
/**
 * WordPress dependencies.
 */
import { WPElement } from '@wordpress/element';

/**
 * Internal dependencies.
 */
import Report from './reports/report';

/**
 * Reports component.
 *
 * @param {object} props Component props.
 * @param {object} props.reports Status reports.
 * @returns {WPElement} Reports component.
 */
export default ({ reports }) => {
	return Object.entries(reports).map(([key, { actions, groups, title }]) => (
		<Report actions={actions} groups={groups} id={key} key={key} title={title} />
	));
};

```
