initial ui

This commit is contained in:
2024-09-24 23:40:27 +01:00
parent ff04f088ca
commit eef23656f9
10 changed files with 685 additions and 171 deletions

16
store/store.ts Normal file
View File

@@ -0,0 +1,16 @@
import type { ImageAsset } from "@/cloudinary/cloudinary";
import { create } from "zustand";
interface Store {
selectedWallpaper: ImageAsset | null;
setSelectedWallpaper(image: ImageAsset): void;
}
const useStore = create<Store>((set) => ({
selectedWallpaper: null,
setSelectedWallpaper: (image) =>
set((store) => ({ ...store, selectedWallpaper: image })),
}));
export { useStore };