forked from quic-issues/427e7578-d7bf-49c8-aee9-2dd999e25316
p2p poll logic added
This commit is contained in:
12
components/PollOption.tsx
Normal file
12
components/PollOption.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
"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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user