UNPKG

@adaptui/react

Version:

Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit

25 lines (20 loc) 489 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getToast = exports.genId = void 0; var genId = function () { var count = 0; return function () { return (++count).toString(); }; }(); exports.genId = genId; var getToast = function getToast(toasts, toastId) { var index = toasts.findIndex(function (toast) { return toast.id === toastId; }); return toasts[index]; }; exports.getToast = getToast; //# sourceMappingURL=index.js.map