file name and location updayed for better be
This commit is contained in:
14
zustand/useService.ts
Normal file
14
zustand/useService.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
interface ServiceIdZustandType {
|
||||
serviceId: number;
|
||||
setServiceId: (serviceId: number) => void;
|
||||
}
|
||||
|
||||
export const useServiceDetail = create<ServiceIdZustandType>((set) => ({
|
||||
serviceId: 0,
|
||||
setServiceId: (data: number) =>
|
||||
set({
|
||||
serviceId: data,
|
||||
}),
|
||||
}));
|
||||
Reference in New Issue
Block a user