UNPKG

@joshfarrant/shortcuts-js

Version:
27 lines 756 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @action Show Notification * @section Actions > Scripting > Notification * @icon Notification * * Displays a local notification. * * ```js * showNotification({ * title: 'Hello, World!', * body: 'This is a test notification', * sound: true, * }); * ``` */ const showNotification = ({ title = '', body = 'Hello World', sound = true, }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.notification', WFWorkflowActionParameters: { WFNotificationActionTitle: title, WFNotificationActionBody: body, WFNotificationActionSound: sound, }, }); exports.default = showNotification; //# sourceMappingURL=showNotification.js.map