import { usePromotionStore } from '#lib/stores' /** * Composable for managing the state and actions related to promotions. * * @returns {Object} An object containing reactive variables and methods for handling promotion cancellation. * @namespace */ export const useWithdrawError = () => { const { setOpenWithdrawErrorModal } = usePromotionStore() /** * Opens the modal for canceling the promotion and closes the confirm cancel promotion modal. */ const openWithdrawErrorModal = () => { setOpenWithdrawErrorModal(true) } return { openWithdrawErrorModal, } }