增加全局保持当前拣选颜色的功能。

This commit is contained in:
徐涛 2025-01-02 08:59:27 +08:00
parent cbb7565d97
commit f8e37e03d6

3
src/stores/colors.ts Normal file
View File

@ -0,0 +1,3 @@
import { atomWithStorage } from 'jotai/utils';
export const currentPickedColor = atomWithStorage<string>('picked', '000000');