@curvenote/cli
Version:
CLI Client library for Curvenote
14 lines (13 loc) • 435 B
JavaScript
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;