const data = fetch( "https://raw.githubusercontent.com/zavodil/near-nft-owners-list/main/output_votes.txt" ); if (data.ok) { const rows = data.body .split("\n") .map((line) => line.split("|")) .filter((data) => data.length === 3) .map((item) => ( <tr> <td> <Widget src="mob.near/widget/Profile.ShortInlineBlock" props={{ accountId: item[0], tooltip: false }} /> </td> <td class="align-top"> <small>{item[2].substr(0, 19)}</small> </td> </tr> )); return ( <> <h1>Fantastic users who voted for Vadim</h1> <a href="/nomination.ndctools.near/widget/NDC.Nomination.Candidate.Page?house=HouseOfMerit&accountId=vadim.near" class="btn btn-primary mt-2" > VOTE FOR VADIM! </a> <table class="table table-sm mt-4"> <thead> <tr> <th scope="col">User</th> <th scope="col">Vote date (UTC)</th> </tr> </thead> <tbody>{rows}</tbody> </table> </> ); } else return "Loading";