refactor to tamagui

This commit is contained in:
Jorrin
2024-03-18 22:02:54 +01:00
parent 069c8cbb89
commit 52978f6d68
75 changed files with 5537 additions and 2988 deletions

View File

@@ -0,0 +1,20 @@
import { create } from "zustand";
import { immer } from "zustand/middleware/immer";
export type ThemeStoreOption = "main" | "blue" | "gray" | "red" | "teal";
export interface ThemeStore {
theme: ThemeStoreOption;
setTheme(v: ThemeStoreOption): void;
}
export const useThemeStore = create(
immer<ThemeStore>((set) => ({
theme: "main",
setTheme(v) {
set((s) => {
s.theme = v;
});
},
})),
);