import { RecoilState } from 'recoil'; import { StateScopeMapKey } from '@/ui/utilities/recoil-scope/scopes-internal/types/StateScopeMapKey'; export const getState = ( stateScopeMap: (stateScopeMapKey: StateScopeMapKey) => RecoilState, scopeId: string, ) => { return () => stateScopeMap({ scopeId }); };