import { defineStore } from "pinia";
import { getCache, setCache } from "~/utils/cache";

export const app = defineStore("app", () => {
  // const theme = ref<ITheme>(getCache("theme") || "dark");
  // const isDarkMode = computed(() => theme.value === "dark");

  // function setTheme(_theme: ITheme) {
  //   theme.value = _theme;
  //   setCache("theme", _theme);
  // }

  // return {
  //   theme,
  //   setTheme,
  //   isDarkMode,
  // };
});
