import React from 'react' import { Menu, Search } from 'lucide-react' import { Button, HeroIcon } from '@vertesia/ui/core' import { useSidebarToggle } from './SidebarContext.js' import { TitleBar } from './TitleBar.js' import { useUITranslation } from '../i18n/index.js' interface NavbarProps { title?: string onSearch?: (query: string) => void logo?: React.ReactNode children: React.ReactNode | React.ReactNode[] } export function Navbar({ children, logo, onSearch, title }: NavbarProps) { return (
{logo}
{/* Separator shown only if search is displayed in mobile */} {onSearch && }
{onSearch && }
{children}
) } interface SearchBoxProps { onSearch?: (query: string) => void } function SearchBox({ }: SearchBoxProps) { const { t } = useUITranslation(); return (