42ce5fa0fe
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>
19 lines
366 B
TypeScript
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
|