@zendeskgarden/react-modals
Version:
Components relating to modals in the Garden Design System
20 lines (19 loc) • 792 B
TypeScript
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import { IUseModalReturnValue } from '@zendeskgarden/container-modal';
export interface IModalContext {
isLarge?: boolean;
isCloseButtonPresent?: boolean;
hasHeader: boolean;
setHasHeader: (hasHeader: boolean) => void;
getTitleProps: IUseModalReturnValue['getTitleProps'];
getContentProps: IUseModalReturnValue['getContentProps'];
getCloseProps: IUseModalReturnValue['getCloseProps'];
setIsCloseButtonPresent: (isPresent: boolean) => void;
}
export declare const ModalsContext: import("react").Context<IModalContext | undefined>;
export declare const useModalContext: () => IModalContext;