The options for updating the poll.
A promise that resolves when the poll update is complete.
await pollUpdated({
data: { poll: updatedPoll, status: "started" },
polls: currentPolls,
poll: currentPoll,
member: "user123",
islevel: "1",
showAlert: (alert) => console.log(alert.message),
updatePolls: (polls) => setPolls(polls),
updatePoll: (poll) => setCurrentPoll(poll),
updateIsPollModalVisible: (visible) => setIsPollModalVisible(visible),
});
Updates the poll state based on the provided data.