Update like and markPlayed buttons

This commit is contained in:
Prayag Prajapati committed 2023-09-06 23:41:11 +05:30
1 parent 2527d429bc
commit b6962b9ab2
9 files changed
+222 -330

No files matched your search

-14
View File
@@ -1,14 +0,0 @@
/** @format */
import { create } from "zustand";
export const useAppLoadingStore = create((set) => ({
isLoading: false,
isSuccess: false,
isError: false,
setIsLoading: (loading) =>
set((state) => ({ ...state, isLoading: loading })),
setIsSuccess: (success) =>
set((state) => ({ ...state, isSuccess: success })),
setIsError: (error) => set((state) => ({ ...state, isError: error })),
}));