Hiyve Components - v1.0.0
    Preparing search index...
    • PollsSession - Complete polls session management component

      Wraps PollsWindow with session management including:

      • Empty state with file list of saved sessions (owner-only create button)
      • Session header with close button
      • PollCreator dialog for creating new polls
      • Automatic file loading from S3
      • Auto-save integration (owner only)

      This is the recommended component for sidebar integration as it handles all session lifecycle management internally.

      Parameters

      Returns Element

      // In Sidebar.tsx
      case 'polls':
      return <PollsSession />;

      // With customization
      <PollsSession
      labels={{
      emptyState: { message: 'Live polling' },
      }}
      pollsWindowProps={{
      colors: { containerBackground: '#212121' },
      }}
      />