增加全局保持当前拣选颜色的功能。
This commit is contained in:
parent
cbb7565d97
commit
f8e37e03d6
3
src/stores/colors.ts
Normal file
3
src/stores/colors.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import { atomWithStorage } from 'jotai/utils';
|
||||||
|
|
||||||
|
export const currentPickedColor = atomWithStorage<string>('picked', '000000');
|
Loading…
Reference in New Issue
Block a user