import React from "react"; import { observe } from "@status-im/subspace/react"; const RankItem = ({ items, onUpvote, onDownvote }) => { if (!items) return null; return items.map((item, i) => (
{i + 1} - {item.addr}
Upvotes: {item.upvotes} - Downvotes: {item.downvotes}
|{" "}
)); }; export default observe(RankItem);