import { reactive } from 'vue'; // state encapsulated and managed by the composable const globalNonpersistedState = reactive({ showLoadingModal: true, showTextCarousel: false }); const showIssLoadingModal = (newValue, showTextCarousel = false) => { if (newValue !== undefined) { globalNonpersistedState.showLoadingModal = newValue; } if (showTextCarousel !== undefined) { globalNonpersistedState.showTextCarousel = showTextCarousel; } return { globalNonpersistedState }; }; export default showIssLoadingModal;