You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
253 B

import create from "zustand";
import { immer } from "zustand/middleware/immer";
const store = (set) => ({
rate: [0, 10],
setRate: (value) =>
set((state) => {
state.rate = value;
}),
});
export const useRating = create(immer(store));