@empathyco/x-components
Version:
Empathy X Components
35 lines (32 loc) • 865 B
JavaScript
import { defineComponent, computed } from 'vue';
import BaseEventButton from '../base-event-button.vue.js';
/**
* Component contains an event button that emits {@link XEventsTypes.UserClickedCloseEventsModal}
* when clicked. It has a default slot to customize its contents.
*
* @public
*/
var _sfc_main = defineComponent({
components: {
BaseEventButton,
},
props: {
/**
* Event name to use for closing the modal.
*
* @public
*/
closingEvent: {
type: String,
default: 'UserClickedCloseEventsModal',
},
},
setup(props) {
const events = computed(() => ({ [props.closingEvent]: undefined }));
return {
events,
};
},
});
export { _sfc_main as default };
//# sourceMappingURL=base-events-modal-close.vue2.js.map