Zaker-Website/src/states/DeviceTypeState.ts
2024-10-22 10:10:16 +03:00

14 lines
288 B
TypeScript

import { create } from 'zustand';
interface ModalState {
DeviceType: string;
setDeviceType: (value: string) => void;
}
export const useDetectDeviceType = create<ModalState>((set) => ({
DeviceType: "",
setDeviceType: (value: string) => set(() => ({ DeviceType: value })),
}));