Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function cellRendererForState(
cellProps: TableCellProps,
onJobSetClick: (jobSet: string, state: string) => void,
state: string,
) {
if (cellProps.cellData) {
return onJobSetClick((cellProps.rowData as JobSet).jobSetId, state)} {...cellProps} />
}
return defaultTableCellRenderer(cellProps)
}