@carbon/ibm-security
Version:
Carbon for Cloud & Cognitive IBM Security UI components
34 lines (32 loc) • 1.36 kB
JavaScript
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.propTypes = exports.namespace = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _namespace = require("../../../globals/namespace");
var _constants = require("../constants");
/**
* @file Header notification constants.
* @copyright IBM Security 2018
*/
var namespace = exports.namespace = (0, _namespace.appendComponentNamespace)(_constants.namespace, 'notification');
var propTypes = exports.propTypes = {
/** @type {string} Clear button label. */
clearButtonLabel: _propTypes.default.string.isRequired,
/** @type {string} Date. */
dateTime: _propTypes.default.string.isRequired,
/** @type {string} Description. */
description: _propTypes.default.string.isRequired,
/** @type {Function} Clear button callback. */
onClearButtonClick: _propTypes.default.func.isRequired,
/** @type {string} Product name. */
product: _propTypes.default.string.isRequired,
/** @type {string} Time label. */
timeLabel: _propTypes.default.string.isRequired,
/** @type {string} 'Via' label. */
viaLabel: _propTypes.default.string.isRequired,
/** @type {boolean} Has the notification been acknowledged. */
acknowledged: _propTypes.default.bool
};