import React from 'react';
import EasyvEndpoint from './Endpoint';

function Actions({ list = [], nodeId }: { nodeId: number | string; list: any[] }) {
  return (
    <ul>
      {list.map((d) => {
        return <EasyvEndpoint key={d.id} id={d.id} type="action" text={d.text} nodeId={nodeId + ''} />;
      })}
    </ul>
  );
}

export default Actions;
