docs: добавить планы улучшения архитектуры SFERA

This commit is contained in:
Veronika Smirnova
2025-09-18 21:28:07 +03:00
parent 733ccadeb7
commit 3efc387308
18 changed files with 3130 additions and 74 deletions

View File

@ -24,8 +24,11 @@ function FulfillmentSuppliesNotification({ count }: { count: number }) {
)
}
export function FulfillmentSidebar() {
const { user, logout } = useAuth()
export function FulfillmentSidebar({ user: propUser }: { user?: any } = {}) {
const { user: hookUser, logout } = useAuth()
// Приоритет: переданный user через props, затем из хука
const user = propUser || hookUser
const router = useRouter()
const pathname = usePathname()
const { isCollapsed, toggleSidebar } = useSidebar()