import { createSlice , PayloadAction } from '@reduxjs/toolkit' ; const initialState = { searchValue : '' , } ; export const atomNetworkSlice = createSlice ( { name : 'atomNetwork' , initialState , reducers : { setSearchValue : ( state , action ) => { state . searchValue = action . payload ; } , } , } ) ; export const { setSearchValue } = atomNetworkSlice . actions ; export default atomNetworkSlice . reducer ;