UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

40 lines (39 loc) 1.39 kB
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;