import React from "react"; import { ROLE_LABELS } from "../constants/roles"; import { Badge } from "../components/UI/Badge"; import { Button } from "../components/UI/Button"; import { Panel } from "../components/UI/Panel"; import { ThemeToggle } from "../components/UI/ThemeToggle"; import { PwaInstallButton } from "../components/UI/PwaInstallButton"; import { NotificationBell } from "../components/notifications/NotificationBell"; import { NotificationSettings } from "../components/notifications/NotificationSettings"; export const AppShell = ({ user, onInstallApp, isInstalled, isInstallAvailable, onSignOut, onOpenGuide, isGuideOpen = false, navItems, activeSection, onSectionChange, sectionMeta, notifications = [], unreadCount = 0, onMarkNotificationRead, onMarkAllNotificationsRead, children, }) => { const shouldShowMobileNav = !isGuideOpen && navItems.length > 1; const [showNotifSettings, setShowNotifSettings] = React.useState(false); if (showNotifSettings) { return (
Панель
Рабочая область
{user.name} · {ROLE_LABELS[user.role] || user.role}
Рабочая область
{sectionMeta.description}
) : null}