import '../css/UserCheckin.css'; import { useEffect, useState } from "react"; /** * Componenet for checkins. Has a toggle to show more info. * @param {Object} props The props of the component. * @returns {import('react').HtmlHTMLAttributes} A list element holding a checkin's info. */ function EdgeInfo(props) { /* // State - toggled const [stockList, setStockList] = useState([]); const stockInfo = stockList.map((stock) =>
  • {stock}
  • ); const getEdgeInfo = (fromID, toID) => { fetch("http://localhost:4567/edge-data", { method: "POST", body: JSON.stringify({ followerID: fromID, leaderID: toID, }), headers: { "Content-Type": "application/json", }, credentials: "same-origin" }) .then(res => res.json()) .then(data => { console.log(data); setStockList(data); }) .catch(err => console.log(err)); } useEffect(() => getEdgeInfo(), [props.selectedFollowerID, props.selectedLeaderID]); */ return (
    /**/); } export default EdgeInfo;