19 lines
357 B
TypeScript
19 lines
357 B
TypeScript
import { atom } from 'recoil';
|
|
|
|
import { Workspace } from '~/generated/graphql';
|
|
|
|
export type CurrentWorkspace = Pick<
|
|
Workspace,
|
|
| 'id'
|
|
| 'inviteHash'
|
|
| 'logo'
|
|
| 'displayName'
|
|
| 'allowImpersonation'
|
|
| 'featureFlags'
|
|
>;
|
|
|
|
export const currentWorkspaceState = atom<CurrentWorkspace | null>({
|
|
key: 'currentWorkspaceState',
|
|
default: null,
|
|
});
|