Controls modal visibility
Callback when modal is closed
Optional
positionModal position on screen
Optional
backgroundModal background color
Current user's name/ID
User level ('0'=participant, '1'=co-host, '2'=host) - determines if create/end poll buttons are shown
Session Context:
Array of all polls in the room
Currently active/selected poll
Socket.io instance for real-time poll synchronization
Room identifier for poll events
Optional
showAlert display function for user feedback
Customization:
Updates modal visibility state
Poll Management:
Handler for creating new polls (host/co-host only)
Handler for ending active polls (host/co-host only)
Handler for voting in polls
User Context:
Optional
styleAdditional custom styles for modal container
Advanced Render Overrides:
Optional
renderCustom render function for modal content
Optional
renderCustom render function for modal container
Configuration options for the PollModal component.
PollModalOptions
Modal Control: