Add button preview in settings

This commit is contained in:
Alex P 2022-10-19 11:38:49 +03:00
parent e347bd8416
commit ab618b200e
13 changed files with 294 additions and 19 deletions

View file

@ -0,0 +1,9 @@
export const debounce = (callback, delayMs) => {
let timeoutId = null;
return (...args) => {
window.clearTimeout(timeoutId);
timeoutId = window.setTimeout(() => {
callback.apply(null, args);
}, delayMs);
};
};