"use client";

export default function PollOption({ option, pollManager, peerId }: any) {
  return (
    <div
      className="border p-2 mt-2 cursor-pointer"
      onClick={() => pollManager.vote(option.id, peerId)}
    >
      {option.text} - {option.votes} votes
    </div>
  );
}