upd: notifikasi

Deskripsi:
- update notifikasi push routing ketika di klik

No Issues
This commit is contained in:
amel
2025-06-26 14:30:40 +08:00
parent 76c0ba0535
commit 32908e1362
6 changed files with 105 additions and 68 deletions

14
lib/notificationSlice.ts Normal file
View File

@@ -0,0 +1,14 @@
import { createSlice } from '@reduxjs/toolkit';
const notificationUpdate = createSlice({
name: 'notificationUpdate',
initialState: false,
reducers: {
setUpdateNotification: (state, action) => {
return action.payload;
},
},
});
export const { setUpdateNotification } = notificationUpdate.actions;
export default notificationUpdate.reducer;