chore: add dark mask, remove clear button in audio and image

This commit is contained in:
jialin
2025-05-15 18:02:07 +08:00
parent 5e8692eae5
commit ac03a93c64
8 changed files with 98 additions and 9 deletions
+9
View File
@@ -16,6 +16,15 @@ const defaultSettings: UserSettings = {
colorPrimary: colorPrimary
};
export const getStorageUserSettings = () => {
if (typeof window === 'undefined') return defaultSettings;
try {
return JSON.parse(localStorage.getItem('userSettings') || '{}');
} catch {
return defaultSettings;
}
};
export const userSettingsAtom = atomWithStorage<UserSettings>(
'userSettings',
defaultSettings