mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
isDefaultWallpaper util
This commit is contained in:
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;
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user