import { atomFamily } from 'recoil'; export const createScopedState = ({ key, defaultValue, }: { key: string; defaultValue: ValueType; }) => { return atomFamily({ key, default: defaultValue, }); };