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