import React, { ReactNode } from 'react';
import { toastColor } from '../constants';
import { ActivityIndicator } from 'react-native';
import { toastType } from '../types';
import { CheckIcon } from '../components/CheckIcon';
import { ErrorWarning } from '../components/ErrorWarning';
import { InfoIcon } from '../components/InfoIcon';
export const getIcon = (
type: toastType = 'info',
color?: string,
size: number = 24
): ReactNode => {
switch (type) {
case 'success':
return (
);
case 'error':
return (
);
case 'warning':
return (
);
case 'info':
return (
);
case 'loading':
return (
);
}
};