import React from "react"; import { observe } from "@embarklabs/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);