@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
20 lines • 694 B
JavaScript
/**
* Copyright (c) ACT, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import noop from 'lodash/noop';
import { createContext } from 'react';
export var AlertContext = createContext({
actions: {
/* eslint-disable @typescript-eslint/no-unused-vars, lodash/no-extra-args */
addAlert: function (alert) {
return noop(alert);
},
addError: function (error) { return noop(error); },
/* eslint-enable @typescript-eslint/no-unused-vars, lodash/no-extra-args */
},
});
export default AlertContext;
//# sourceMappingURL=index.js.map