pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
25 lines (24 loc) • 819 B
TypeScript
import type { ReactNode } from 'react';
/**
* 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;
};
/**
* Provider component for the new form engine drawer
* Supports multiple drawers using unique keys
*/
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 {};