import { Box, Typography, Chip, Button, IconButton } from '@mui/material' import { Sparkles, Menu } from 'lucide-react' import { WorkspaceType } from '../../domain/enums' import { useAssistantStore } from '../../stores/assistantStore' import { OrganizationContextBadge } from './OrganizationContextBadge' import { NotificationButton } from './NotificationButton' import { UserMenu } from './UserMenu' import { WORKSPACE_CONFIG, getPageNameFromPath } from './appShellConfig' // --------------------------------------------------------------------------- // Types // --------------------------------------------------------------------------- export interface TopBarProps { activeWorkspace: WorkspaceType pathname: string onMenuClick?: () => void isMobile?: boolean } // --------------------------------------------------------------------------- // Component // --------------------------------------------------------------------------- export function TopBar({ activeWorkspace, pathname, onMenuClick, isMobile }: TopBarProps) { const config = WORKSPACE_CONFIG[activeWorkspace] const pageName = getPageNameFromPath(pathname) const openAssistant = useAssistantStore(s => s.open) return ( {/* Left side */} {isMobile && ( )} {pageName} {/* Right side */} ) }