+ {/* Left side with checkbox and title */}
0 && selectedEmails.length === emails.length}
onCheckedChange={toggleSelectAll}
className="mt-0.5"
/>
-
- {currentView === 'INBOX' ? 'Inbox' :
- currentView === 'starred' ? 'Starred' :
- currentView.charAt(0).toUpperCase() + currentView.slice(1).toLowerCase()}
-
+ Inbox
+
+ {emails.length} emails
+
-
- {emails.length} emails
-
-
- {/* Bulk actions aligned to the right */}
- {selectedEmails.length > 0 && (
-
+
+ {/* Bulk actions right after the title */}
+ {selectedEmails.length > 0 ? (
+
- )}
+ ) : null}