function createRowRenderer()

in src/components/Timeline/Timeline.tsx [218:244]


function createRowRenderer({
  rows,
  timeline,
  searchStatus,
  onStepRowClick,
  paramsString = '',
  t,
  dragging,
}: RowRendererProps) {
  return ({ index, style }: { index: number; style: React.CSSProperties }) => {
    const row = rows[index];
    return (
      <div style={style} key={getUniqueKey(index, row)}>
        <TimelineRow
          item={row}
          timeline={timeline}
          searchStatus={searchStatus}
          isOpen={row.type === 'step' && row.rowObject.isOpen}
          onOpen={() => row.type === 'step' && onStepRowClick(row.data.step_name)}
          paramsString={paramsString}
          t={t}
          dragging={dragging}
        />
      </div>
    );
  };
}