UNPKG

react-dayo

Version:

A Queue component for notification etc

24 lines (23 loc) 693 B
/// <reference types="react" /> import { BaseThemedCssFunction } from 'styled-components'; export interface ConfirmTheme { textColor: string; backgroundColor: string; borderColor?: string; } export declare type ConfirmThemedCssFunction = BaseThemedCssFunction<ConfirmTheme>; export interface ConfirmProps { /** * To define to text of the title of confirm */ title?: React.ReactNode; /** * To define the text of the button that confirms the action. */ confirm?: React.ReactNode; /** * To define the text of the button that cancels the action */ deny?: React.ReactNode; onButtonClick?: (type: 'cnofirm' | 'deny') => void; }