p2p poll logic added
This commit is contained in:
14
components/PeersList.tsx
Normal file
14
components/PeersList.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
"use client";
|
||||
|
||||
export default function PeersList({ peers }: { peers: string[] }) {
|
||||
return (
|
||||
<div>
|
||||
<h3>Peers</h3>
|
||||
{peers.length === 0 ? (
|
||||
<p>No peers</p>
|
||||
) : (
|
||||
peers.map((p) => <div key={p}>{p}</div>)
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user