Files
main_frontend/src/shared/store/appState/index.ts
T
Daniil 42ce5fa0fe Add dynamic breadcrumbs to Header via React Context
Replace hardcoded "Coffee Project / Projects" with a BreadcrumbsContext
that each page registers into via useBreadcrumbs(). The Header reads
breadcrumb items dynamically, renders links for items with href, and
makes "Coffee Project" clickable to open the navigation drawer. Also
removes the unused currentScreenName from Redux appState.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 22:25:27 +03:00

19 lines
366 B
TypeScript

import { createSlice } from "@reduxjs/toolkit"
import { AppState } from "./types"
const initialState: AppState = {}
const appStateSlice = createSlice({
name: "appState",
initialState,
reducers: {
resetAppState() {
return initialState
},
},
})
export const { resetAppState } = appStateSlice.actions
export const appStateReducer = appStateSlice.reducer