| 1 |
import { Snackbar } from '@wordpress/components'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
import { AnimatePresence, motion } from 'framer-motion'; |
| 4 |
|
| 5 |
export const RetryNotice = ({ show }) => { |
| 6 |
if (!show) return null; |
| 7 |
return ( |
| 8 |
<AnimatePresence> |
| 9 |
<motion.div className="fixed bottom-[20px] right-0 z-max flex justify-end px-4 pb-4"> |
| 10 |
<div className="shadow-2xl"> |
| 11 |
<Snackbar> |
| 12 |
{__( |
| 13 |
'Just a moment, this is taking longer than expected.', |
| 14 |
'extendify-local', |
| 15 |
)} |
| 16 |
</Snackbar> |
| 17 |
</div> |
| 18 |
</motion.div> |
| 19 |
</AnimatePresence> |
| 20 |
); |
| 21 |
}; |
| 22 |
|