jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
40 lines (39 loc) • 1.39 kB
TypeScript
import React from 'react';
import { SpaceProps } from 'styled-system';
declare type BaseModalProps = SpaceProps;
export interface ModalProps extends BaseModalProps {
/**
* Contents to render inside the modal.
*/
children: React.ReactNode;
/**
* Content for the display of confirm.
*/
confirmText: React.ReactNode;
/**
* Content for the display of cancel.
*/
cancelText: React.ReactNode;
/**
* Content for the display of cancel.
*/
alertLabel: React.ReactNode;
/**
* If the modal is currently visible.
*/
isShown: boolean;
/**
* Callback for when closing or cancelling.
*/
onClose: () => void;
/**
* Callback for when confirming.
*/
onConfirm: () => void;
}
export declare const StyledAlertLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
export declare const StyledContent: import("styled-components").StyledComponent<"div", any, {}, never>;
export declare const dialogStyles: import("styled-components").FlattenInterpolation<any>;
export declare const GlobalDialogStyle: import("styled-components").GlobalStyleComponent<any, import("styled-components").DefaultTheme>;
export declare const Alert: ({ children, isShown, onClose, onConfirm, confirmText, cancelText, alertLabel, ...props }: ModalProps) => JSX.Element;
export default Alert;