import { toast } from 'react-toastify' import { Toast } from 'lib/components' import { Toastify } from '../types' type UseToastProps = { text: string, type: Toastify } export const useToast = () => ({ setToast: ({ text, type = Toastify.Default }: UseToastProps) => toast(( ), { hideProgressBar: true, type, theme: 'colored' }) })