"use client" import { DriveSearchBar } from "@/components/drive/drive-search-bar" import { HeaderAccountActions } from "@/components/suite/header-account-actions" import { Button } from "@/components/ui/button" import { DRIVE_MAIN_INSET_X } from "@/lib/drive/drive-chrome-classes" import type { DriveSearchScope } from "@/lib/drive/drive-search" import type { DriveView } from "@/lib/drive/drive-url" import { useIsMobile } from "@/hooks/use-mobile" import { useIsXs } from "@/hooks/use-xs" import { useDriveUIStore } from "@/lib/stores/drive-ui-store" import { Menu } from "lucide-react" import { cn } from "@/lib/utils" export function DriveHeader({ search, onSearchChange, searchScope, onSearchScopeChange, folderPath, contextView, resultsMode = false, }: { search: string onSearchChange: (q: string) => void searchScope: DriveSearchScope onSearchScopeChange: (scope: DriveSearchScope) => void folderPath: string contextView: DriveView resultsMode?: boolean }) { const isMobile = useIsMobile() const isXs = useIsXs() const sidebarCollapsed = useDriveUIStore((s) => s.sidebarCollapsed) const setSidebarCollapsed = useDriveUIStore((s) => s.setSidebarCollapsed) return (
{isMobile && !isXs && sidebarCollapsed ? ( ) : null}
) }