import CloseButton from '@elementor/ui/CloseButton'; import Snackbar from '@elementor/ui/Snackbar'; import SnackbarContent from '@elementor/ui/SnackbarContent'; import { useSettings } from '../hooks/use-settings'; const ReviewNotifications = ( { type, message } ) => { const { showNotification, setShowNotification, setNotificationMessage, setNotificationType, } = useSettings(); const closeNotification = () => { setShowNotification( ! showNotification ); setNotificationMessage( '' ); setNotificationType( '' ); }; if ( ! showNotification ) { return null; } return ( } /> ); }; export default ReviewNotifications;