@empathyco/x-components
Version:
Empathy X Components
14 lines (12 loc) • 437 B
JavaScript
/**
* Default implementation for the {@link AiGetters.currentQuestion} getter.
*
* @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the ai
* module.
* @returns The ai request to fetch data from the API.
*
* @public
*/
const currentQuestion = ({ questionsByQuery, query, }) => questionsByQuery[query]?.questions[0];
export { currentQuestion };
//# sourceMappingURL=current-question.getter.js.map