This commit is contained in:
24
node_modules/react-toastify/dist/components/Icons.d.ts
generated
vendored
Normal file
24
node_modules/react-toastify/dist/components/Icons.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import { Theme, ToastProps, TypeOptions } from '../types';
|
||||
/**
|
||||
* Used when providing custom icon
|
||||
*/
|
||||
export interface IconProps {
|
||||
theme: Theme;
|
||||
type: TypeOptions;
|
||||
}
|
||||
export type BuiltInIconProps = React.SVGProps<SVGSVGElement> & IconProps;
|
||||
declare function Warning(props: BuiltInIconProps): React.JSX.Element;
|
||||
declare function Info(props: BuiltInIconProps): React.JSX.Element;
|
||||
declare function Success(props: BuiltInIconProps): React.JSX.Element;
|
||||
declare function Error(props: BuiltInIconProps): React.JSX.Element;
|
||||
declare function Spinner(): React.JSX.Element;
|
||||
export declare const Icons: {
|
||||
info: typeof Info;
|
||||
warning: typeof Warning;
|
||||
success: typeof Success;
|
||||
error: typeof Error;
|
||||
spinner: typeof Spinner;
|
||||
};
|
||||
export declare function getIcon({ theme, type, isLoading, icon }: ToastProps): React.ReactNode;
|
||||
export {};
|
||||
Reference in New Issue
Block a user