增加全局保持当前拣选颜色的功能。
This commit is contained in:
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');
|
Reference in New Issue
Block a user