@descope/sdk-mixins
Version:
Descope JavaScript SDK mixins
13 lines (10 loc) • 379 B
JavaScript
import { NOTIFICATION_ELE_TAG } from './constants.js';
const createNotificationEle = (config = {}) => {
const notification = document.createElement(NOTIFICATION_ELE_TAG);
Object.keys(config).forEach((key) => {
notification.setAttribute(key, config[key]);
});
return notification;
};
export { createNotificationEle };
//# sourceMappingURL=helpers.js.map