import * as React from 'react';
import WizardPanel from '../../components/WizardPanel';
import { DataSource, InfiniteTableGrid } from '../../components/InfiniteTable';
const columnsMap = {
    Key: { field: 'Key', header: 'Property', defaultFlex: 1 },
    Value: { field: 'Value', header: 'Value', defaultFlex: 3 },
};
const tableDOMProps = {
    className: 'ab-WizardSummary__list',
    style: {
        height: '100%',
        margin: 'calc(var(--ab-base-space) * 2)',
    },
};
export const WizardSummaryPage = (props) => {
    return (React.createElement(WizardPanel, { bodyProps: { className: 'twa:p-0' }, className: "ab-WizardSummary", "data-name": 'wizard-summary' },
        React.createElement(DataSource, { data: props.KeyValuePairs, primaryKey: "Key" },
            React.createElement(InfiniteTableGrid, { showZebraRows: true, domProps: tableDOMProps, columns: columnsMap }))));
};
