UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

17 lines (16 loc) 1.23 kB
import React from 'react'; import { useSelector } from 'react-redux'; import { ReportNameSelector } from './ReportNameSelector'; import { ReportFormatSelector } from './ReportFormatSelector'; import { ExportDestinationPicker } from './ExportDestinationPicker'; import { useAdaptable } from '../AdaptableContext'; export const ExportStatusBar = () => { const adaptable = useAdaptable(); const exportApi = adaptable.api.exportApi; const currentReportName = useSelector((state) => state.Export.CurrentReport); const currentFormat = useSelector((state) => state.Export.CurrentFormat); return (React.createElement(React.Fragment, null, React.createElement(ReportNameSelector, { viewType: "StatusBar", size: 'small', reportName: currentReportName, onReportNameSelected: (reportName) => exportApi.selectReport(reportName) }), React.createElement(ReportFormatSelector, { viewType: "StatusBar", size: 'small', reportName: currentReportName, reportFormat: currentFormat, onReportFormatSelected: (reportFormat) => exportApi.selectFormat(reportFormat) }), React.createElement(ExportDestinationPicker, { viewType: "StatusBar", reportName: currentReportName, reportFormat: currentFormat }))); };