courrier multi account restore compose
This commit is contained in:
parent
d4b49a265d
commit
c49e3376d5
@ -977,65 +977,9 @@ export default function CourrierPage() {
|
||||
|
||||
{/* Panel 2: Email List - Always visible */}
|
||||
<div className="w-1/3 flex flex-col border-r border-gray-100 overflow-hidden">
|
||||
{/* Header with search */}
|
||||
<div className="p-2 border-b border-gray-100 bg-white flex items-center justify-between">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="md:hidden h-9 w-9"
|
||||
onClick={() => setMobileSidebarOpen(!mobileSidebarOpen)}
|
||||
>
|
||||
<Menu className="h-5 w-5 text-gray-500" />
|
||||
</Button>
|
||||
|
||||
<div className="flex-1 max-w-md relative">
|
||||
<Search className="absolute left-2 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400" />
|
||||
<Input
|
||||
value={searchQuery}
|
||||
onChange={(e) => searchEmails(e.target.value)}
|
||||
placeholder="Search emails..."
|
||||
className="pl-8 h-9 bg-gray-50 border-gray-200"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center">
|
||||
{selectedEmailIds.length > 0 && (
|
||||
<div className="flex items-center mr-2 space-x-1">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="h-8 w-8"
|
||||
onClick={() => handleBulkAction('mark-read')}
|
||||
>
|
||||
<MessageSquare className="h-4 w-4 text-gray-500" />
|
||||
</Button>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="h-8 w-8"
|
||||
onClick={() => handleBulkAction('delete')}
|
||||
>
|
||||
<Trash className="h-4 w-4 text-gray-500" />
|
||||
</Button>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="h-8 w-8"
|
||||
onClick={() => handleBulkAction('archive')}
|
||||
>
|
||||
<Archive className="h-4 w-4 text-gray-500" />
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{session?.user && (
|
||||
<Avatar className="h-8 w-8">
|
||||
<AvatarFallback className="bg-blue-100 text-blue-600">
|
||||
{session.user.name?.substring(0, 2) || session.user.email?.substring(0, 2) || 'U'}
|
||||
</AvatarFallback>
|
||||
</Avatar>
|
||||
)}
|
||||
</div>
|
||||
{/* Header with simple title */}
|
||||
<div className="p-2 border-b border-gray-100 bg-white">
|
||||
<h2 className="text-sm font-medium text-gray-700">{currentFolder}</h2>
|
||||
</div>
|
||||
|
||||
{/* Email List - Always visible */}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user