pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
26 lines (25 loc) • 941 B
TypeScript
import type { ReactNode } from 'react';
import type { FormPersistenceContextType } from '../form-engine/types';
/**
* Type definition for the new form engine drawer context
* Supports multiple drawers using unique keys
*/
type MultiFormEngineDrawerProviderContextType = {
isOpen: (key: string) => boolean;
isAnyDrawerOpen: () => boolean;
handleOpenDrawer: (key: string) => void;
handleCloseDrawer: (key: string) => void;
} & FormPersistenceContextType;
/**
* Provider component for the new form engine drawer
* Supports multiple drawers using unique keys and form persistence
*/
export declare const MultiFormEngineDrawerProvider: ({ pathname, children }: {
pathname: string;
children: ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
/**
* Hook to access the new form engine drawer context
*/
export declare const useMultiFormEngineDrawer: () => MultiFormEngineDrawerProviderContextType;
export {};