import type { RouteExtended } from '@lifi/sdk' import { Box } from '@mui/material' import type React from 'react' import { Fragment } from 'react' import { renderExecutionRow, useExecutionRows } from './executionRows.js' interface StepActionsListProps { route: RouteExtended toAddress?: string } /** Non-animated list of completed execution step rows (transaction details view). */ export const StepActionsList: React.FC = ({ route, toAddress, }) => { const rows = useExecutionRows(route, toAddress) if (rows.length === 0) { return null } const lastActionIndex = rows.findLastIndex((r) => r.kind === 'action') return ( {rows.map((row, index) => ( {renderExecutionRow(row, index === lastActionIndex)} ))} ) }