isDefaultWallpaper util

This commit is contained in:
Christopher committed 2021-04-03 16:51:04 +02:00
1 parent d14e534b9a
commit e268dae34b
1 file changed
+8
@@ -0,0 +1,8 @@
import config from '../../../config/default.json';
export const isDefaultWallpaper = (value: string) => {
const wallpapers = config.wallpapers;
for (const wallpaper of wallpapers) {
if (wallpaper.value === value) return true;
}
};