import React from 'react' ; import { useToast } from '../../context/toasts' ; import Toasts from '../../components/Toasts/Toasts' ; const ToastsContainer = ( ) => { const { toasts , closeToast } = useToast ( ) ; return < Toasts toasts = { toasts } closeToast = { closeToast } / > ; } ; export default ToastsContainer ;