UNPKG

@open-tender/store

Version:

A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API

10 lines (9 loc) 545 B
import { AppState } from '../app'; export interface ModalState { type: string | null; args?: Record<string, unknown> | null; } export declare const openModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "modal/openModal">, closeModal: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"modal/closeModal">; export declare const selectModal: (state: AppState) => ModalState; export declare const selectModalType: (state: AppState) => string | null; export declare const modalReducer: import("redux").Reducer<ModalState>;