17 lines
385 B
JavaScript
17 lines
385 B
JavaScript
![]() |
/**
|
||
|
* Mock factory for the UserCalloutDismisser component.
|
||
|
* @param {slotProps} The slot props to pass to the default slot content.
|
||
|
* @returns {VueComponent}
|
||
|
*/
|
||
|
export const makeMockUserCalloutDismisser = ({
|
||
|
dismiss = () => {},
|
||
|
shouldShowCallout = true,
|
||
|
} = {}) => ({
|
||
|
render() {
|
||
|
return this.$scopedSlots.default({
|
||
|
dismiss,
|
||
|
shouldShowCallout,
|
||
|
});
|
||
|
},
|
||
|
});
|