OptionalinitialPolls: Poll[]Optional initial polls to populate state
Poll state and management functions
This hook provides efficient O(1) lookup for polls by ID while also maintaining sorted arrays for display. It tracks user votes separately to enable quick lookup of voting status.
State Management:
Hook for managing local poll state with Map-based storage.