UNPKG

@empathyco/x-components

Version:
21 lines (18 loc) 659 B
import { XPlugin } from '../../../../plugins/x-plugin.js'; /** * Default implementation for the {@link RelatedPromptsActions.fetchRelatedPrompts}. * * @param _ - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions, * provided by Vuex. * @param request - The related prompts request to make. * @returns The related prompts response. * * @public */ const fetchRelatedPrompts = async (_, request) => { return request ? XPlugin.adapter.relatedPrompts(request).then(({ relatedPrompts }) => relatedPrompts) : null; }; export { fetchRelatedPrompts }; //# sourceMappingURL=fetch-related-prompts.action.js.map