import React from "react"; import AgentPage from "./AgentPage"; /* import {Link} from 'react-router-dom' */ import Card from "react-bootstrap/Card"; import Button from "react-bootstrap/Button"; const Agents = ({ agents }) => { const agentlist = agents.map((agent) => { return (
{} {agent.title} {agent.name} {agent.word}
); }); console.log(agentlist); return (
{agentlist[0]}
{agentlist[1]}
{agentlist[2]}
{agentlist[3]}
{agentlist[4]}
{agentlist[5]}
); }; export default Agents;