Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const createRow = rowData => (
{
key: rowData.key,
cells: createCellsForRow(rowData.cells),
isDisabled: !Utils.canToggleArrayValue(maxSectionCount, selectedKeys, rowData.key),
toggleAction: {
metaData: { key: rowData.key },
onToggle: handleRowToggle,
isToggled: selectedKeys.indexOf(rowData.key) >= 0,
toggleLabel: rowData.toggleText,
},
}
);