Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / components / hooks / useUid.ts
blob8dd781ce13b1a4b109217657e2646c95208de489
1 import useInstance from '@proton/hooks/useInstance';
2 import generateUID from '@proton/utils/generateUID';
4 /* Persists same uid accross component lifetime. */
5 const useUid = (prefix?: string) => {
6     return useInstance(() => generateUID(prefix));
7 };
9 export default useUid;