1 | import React from 'react';
|
2 | import { Theme, ToastProps, TypeOptions } from '../types';
|
3 |
|
4 |
|
5 |
|
6 | export interface IconProps {
|
7 | theme: Theme;
|
8 | type: TypeOptions;
|
9 | isLoading?: boolean;
|
10 | }
|
11 | export type BuiltInIconProps = React.SVGProps<SVGSVGElement> & IconProps;
|
12 | declare function Warning(props: BuiltInIconProps): React.JSX.Element;
|
13 | declare function Info(props: BuiltInIconProps): React.JSX.Element;
|
14 | declare function Success(props: BuiltInIconProps): React.JSX.Element;
|
15 | declare function Error(props: BuiltInIconProps): React.JSX.Element;
|
16 | declare function Spinner(): React.JSX.Element;
|
17 | export declare const Icons: {
|
18 | info: typeof Info;
|
19 | warning: typeof Warning;
|
20 | success: typeof Success;
|
21 | error: typeof Error;
|
22 | spinner: typeof Spinner;
|
23 | };
|
24 | export type IconParams = Pick<ToastProps, 'theme' | 'icon' | 'type' | 'isLoading'>;
|
25 | export declare function getIcon({ theme, type, isLoading, icon }: IconParams): React.ReactNode;
|
26 | export {};
|