"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>
  );
}