UNPKG

@adaptabletools/adaptable

Version:

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

28 lines (27 loc) 1.16 kB
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; import { Tag } from '../../../components/Tag'; import { SummaryText, useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard'; export const getScheduledReportSettingsValues = (reportSchedule) => { return [ { label: 'Schedule Name', value: reportSchedule?.Name || 'Not Specified', }, { label: 'Report Name', value: reportSchedule?.ReportName || 'Not Specified', }, { label: 'Report Format', value: reportSchedule?.ReportFormat || 'Not Specified', }, { label: 'Export Destination', value: reportSchedule?.ExportDestination || 'Download', }, ]; }; export const ScheduledReportSettingsSummary = () => { const { data } = useOnePageAdaptableWizardContext(); return (_jsx(_Fragment, { children: getScheduledReportSettingsValues(data).map((description, index) => (_jsxs(SummaryText, { children: [description.label, ": ", _jsx(Tag, { children: description.value })] }, index))) })); };