"use client" import { Menu, X, Pencil, Search, Archive, FolderInput, Reply, } from "lucide-react" import { Button } from "@/components/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { useComposeActions } from "@/lib/compose-context" import { MoveToDropdownItems } from "@/components/gmail/move-to-menu-items" import { MAIL_MENU_SURFACE_CLASS } from "@/lib/mail-chrome-classes" import type { MailXsViewChrome } from "@/lib/mail-xs-view-chrome" import { cn } from "@/lib/utils" interface MobileBottomBarProps { sidebarOpen: boolean onToggleSidebar: () => void /** Lecture message xs : barre d’actions à la place du menu / recherche. */ xsViewChrome?: MailXsViewChrome | null onOpenSearch?: () => void searchQuery?: string onClearSearch?: () => void } const ROUNDED_BAR_BTN = "size-11 shrink-0 rounded-full border border-gray-200 bg-white/80 text-[#444746] shadow-md backdrop-blur hover:bg-white" export function MobileBottomBar({ sidebarOpen, onToggleSidebar, xsViewChrome = null, onOpenSearch, searchQuery, onClearSearch, }: MobileBottomBarProps) { const { openCompose } = useComposeActions() const inMailView = Boolean(xsViewChrome) return (
{inMailView && xsViewChrome ? (
) : ( <> {!sidebarOpen && ( )} )} {!sidebarOpen && ( )}
) }