Sha256: 5eaa388337308891e0669fd26d918e1431e12b5de8f5f062c368123c15bd7bf3
Contents?: true
Size: 350 Bytes
Versions: 3
Compression:
Stored size: 350 Bytes
Contents
import { create } from "zustand"; interface ModalState { component: JSX.Element | null, open: (elem: JSX.Element) => void, close: () => void } const useModalStore = create<ModalState>((set) => ({ component: null, open: (c: JSX.Element) => set({ component: c }), close: () => set({ component: null }) })); export default useModalStore;
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pages_core-3.12.4 | app/javascript/stores/useModalStore.ts |
pages_core-3.12.3 | app/javascript/stores/useModalStore.ts |
pages_core-3.12.2 | app/javascript/stores/useModalStore.ts |