2025-02-08 09:02:21 +00:00
|
|
|
import { create } from "zustand";
|
|
|
|
|
|
|
|
|
|
interface ILotteryStatus {
|
|
|
|
|
status: "Upcoming" | "Finished" | "Ongoing";
|
|
|
|
|
setStatus: (value: "Upcoming" | "Finished" | "Ongoing") => void;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-24 11:45:37 +00:00
|
|
|
interface IQuizSearch {
|
|
|
|
|
active: boolean;
|
|
|
|
|
setActive: (value: boolean) => void;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-08 09:02:21 +00:00
|
|
|
export const useLotteryStatus = create<ILotteryStatus>((set) => ({
|
|
|
|
|
status: "Upcoming",
|
|
|
|
|
setStatus: (value: "Upcoming" | "Finished" | "Ongoing") =>
|
|
|
|
|
set({ status: value }),
|
|
|
|
|
}));
|
2025-02-24 11:45:37 +00:00
|
|
|
|
|
|
|
|
export const useQuizSearchActive = create<IQuizSearch>((set) => ({
|
|
|
|
|
active: false,
|
|
|
|
|
setActive: (value: boolean) => set({ active: value }),
|
|
|
|
|
}));
|