UNPKG

@curvenote/cli

Version:
14 lines (13 loc) 435 B
import { createSlice } from '@reduxjs/toolkit'; export const oxalink = createSlice({ name: 'oxalink', initialState: { lookup: {} }, reducers: { updateLinkInfo(state, action) { const { oxa, path, url } = action.payload; state.lookup[oxa] = { path, url }; }, }, }); // Export the reducer directly for consistency with api/reducers.ts export const oxalinkReducer = oxalink.reducer;