add interactions to comments
This commit is contained in:
21
lib/overlayHandler.js
Normal file
21
lib/overlayHandler.js
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
/**
|
||||
* Display overlay with dynamic parameters.
|
||||
* @param {Object} options - Overlay configuration.
|
||||
* @param {string} options.icon - Icon to display in the overlay.
|
||||
* @param {string} options.message - Message to display in the overlay.
|
||||
* @param {string} options.buttonText - Button text to display in the overlay.
|
||||
* @param {string} options.iconColor - Icon color to display in the overlay.
|
||||
* @param {Ref<boolean>} overlay - Reactive overlay state.
|
||||
*/
|
||||
export const showOverlay = (options, overlay) => {
|
||||
const { icon, message, buttonText, iconColor } = options;
|
||||
|
||||
overlay.value = {
|
||||
icon,
|
||||
message,
|
||||
buttonText,
|
||||
iconColor,
|
||||
visible: true,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user