@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
13 lines (12 loc) • 450 B
TypeScript
/// <reference types="react" />
import { Path } from '../../types';
import { SnapshotName } from './Snapshot';
export type SnapshotMap = React.MutableRefObject<Map<Path, unknown>>;
export type SnapshotContextState = {
name: SnapshotName;
setMountedField: (path: Path, { isMounted }: {
isMounted: boolean;
}) => void;
};
declare const SnapshotContext: import("react").Context<SnapshotContextState>;
export default SnapshotContext;