import React, { useMemo } from 'react';
import { PowerBIReport } from './PowerBIReport';
const Reports = props => {
    var _a, _b, _c;
    const { match, location } = props;
    const id = (_a = match.params) === null || _a === void 0 ? void 0 : _a.id;
    const menuItemReportParams = useMemo(() => {
        var _a, _b;
        return (_b = (_a = location === null || location === void 0 ? void 0 : location.state) === null || _a === void 0 ? void 0 : _a.params) === null || _b === void 0 ? void 0 : _b.ReportDefaultParameters;
    }, [(_c = (_b = location === null || location === void 0 ? void 0 : location.state) === null || _b === void 0 ? void 0 : _b.params) === null || _c === void 0 ? void 0 : _c.ReportDefaultParameters]);
    return React.createElement(PowerBIReport, { id: id, reportParameters: menuItemReportParams });
};
export default Reports;
//# sourceMappingURL=Reports.js.map