feat(client): add KYC for event joining
Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { Query } from '@tanstack/react-query';
|
||||
import type { ClassValue } from 'clsx';
|
||||
// eslint-disable-next-line unicorn/prefer-node-protocol
|
||||
import { Buffer } from 'buffer';
|
||||
@@ -17,3 +18,12 @@ export function base64ToUtf8(base64: string): string {
|
||||
export function utf8ToBase64(utf8: string): string {
|
||||
return Buffer.from(utf8, 'utf-8').toString('base64');
|
||||
}
|
||||
|
||||
export function invalidateBlurry(id: string) {
|
||||
return {
|
||||
predicate: (query: Query<unknown, Error, unknown, readonly unknown[]>) => {
|
||||
const key = query.queryKey[0] as { _id: string };
|
||||
return key?._id === id;
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user