mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-23 06:12:16 +03:00
6 lines
167 B
TypeScript
6 lines
167 B
TypeScript
|
export const generateToastUniqueId = () => {
|
||
|
const timestamp = Date.now();
|
||
|
const random = Math.floor(Math.random() * 10000);
|
||
|
return `${timestamp}-${random}`;
|
||
|
};
|