@sertec/dialog
Version:
Sfera Dialog Component
16 lines (15 loc) • 675 B
TypeScript
import { Dispatch, SetStateAction } from 'react';
import { DialogWidth } from '@sertec/types';
import { useDialog } from './hook.js';
type ContextType = (ReturnType<typeof useDialog> & {
setLabelId: Dispatch<SetStateAction<string | undefined>>;
setDescriptionId: Dispatch<SetStateAction<string | undefined>>;
width?: DialogWidth;
}) | null;
export declare const DialogContext: import("react").Context<ContextType>;
export declare function useDialogContext(): import("./types.js").UseDialog & {
setLabelId: Dispatch<SetStateAction<string | undefined>>;
setDescriptionId: Dispatch<SetStateAction<string | undefined>>;
width?: DialogWidth;
};
export {};