import Toast from 'react-native-toast-message';
import { ToastType } from 'react-native-toast-message/lib/src/types';

export const showMessage = (
  message: string,
  type?: ToastType,
  message2?: string,
) => {
  Toast.show({
    type: type ?? 'success',
    text1: message,
    text2: message2,
  });
};
export const showErrorMessage = (message: string, message2?: string) => {
  Toast.show({
    type: 'error',
    text1: message,
    text2: message2,
  });
};
