File size: 527 Bytes
8a37e0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import type { ReadableAtom } from 'nanostores';
import { atom } from 'nanostores';

/**
 * A fallback non-writable atom that always returns `false`, used when a nanostores atom is only conditionally available
 * in a hook or component.
 *
 * @knipignore
 */
export const $false: ReadableAtom<boolean> = atom(false);
/**
 * A fallback non-writable atom that always returns `true`, used when a nanostores atom is only conditionally available
 * in a hook or component.
 */
export const $true: ReadableAtom<boolean> = atom(true);