mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Add state reactive variables
This commit is contained in:
+10
-1
@@ -1 +1,10 @@
|
|||||||
export {};
|
import { makeVar } from '@apollo/client';
|
||||||
|
import { UserResponseModel } from './types';
|
||||||
|
|
||||||
|
export const tokenVar = makeVar<string | undefined>(undefined);
|
||||||
|
|
||||||
|
export const roleVar = makeVar<
|
||||||
|
'client' | 'productOwner' | 'developer' | 'admin' | undefined
|
||||||
|
>(undefined);
|
||||||
|
|
||||||
|
export const userVar = makeVar<UserResponseModel | undefined>(undefined);
|
||||||
|
|||||||
Reference in New Issue
Block a user