UNPKG

@yext/search-headless

Version:

A library for powering UI components for Yext Search integrations

21 lines 615 B
import { createSlice } from '@reduxjs/toolkit'; export const initialState = {}; const reducers = { setIsLoading: (state, action) => { state.isLoading = action.payload; }, setResponse: (state, action) => { state.response = action.payload; } }; /** * Registers with Redux the slice of {@link State} pertaining to generative direct answer. */ export default function createGenerativeDirectAnswerSlice(prefix) { return createSlice({ name: prefix + 'generativeDirectAnswer', initialState, reducers }); } //# sourceMappingURL=generativedirectanswer.js.map