AniX/frontend/app/store/theme-store.js
Kentai Radiquum 79782b4228
frontend:
Fix undefined api call
Simplify some parts
Better theme management
Add color picker (dynamic themes wohoo)
Add missing lists keys
2024-04-21 05:35:44 +05:00

15 lines
304 B
JavaScript

"use client";
export function setMode(mode) {
localStorage.setItem("mode", mode);
}
export function getMode() {
return localStorage.getItem("mode");
}
export function setTheme(theme) {
localStorage.setItem("theme", theme);
}
export function getTheme() {
return localStorage.getItem("theme");
}