woocommerce/plugins/woocommerce-admin/client/analytics/report/stock/index.js

40 lines
775 B
JavaScript

/** @format */
/**
* External dependencies
*/
import { Component, Fragment } from '@wordpress/element';
import PropTypes from 'prop-types';
/**
* WooCommerce dependencies
*/
import { ReportFilters } from '@woocommerce/components';
/**
* Internal dependencies
*/
import { showDatePicker, filters } from './config';
import StockReportTable from './table';
export default class StockReport extends Component {
render() {
const { query, path } = this.props;
return (
<Fragment>
<ReportFilters
query={ query }
path={ path }
showDatePicker={ showDatePicker }
filters={ filters }
/>
<StockReportTable query={ query } filters={ filters } />
</Fragment>
);
}
}
StockReport.propTypes = {
query: PropTypes.object.isRequired,
};