Files
427e7578-d7bf-49c8-aee9-2dd…/components/PollOption.tsx
2026-03-19 10:52:12 +01:00

12 lines
283 B
TypeScript

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