import { useEffect, useState } from 'react'; import { NotificationBadge, NotificationBadgeVariant, Button, Stack, StackItem } from '@patternfly/react-core'; export const NotificationBadgeWithAnimation: React.FunctionComponent = () => { const [count, setCount] = useState(0); const [notify, setNotify] = useState(false); useEffect(() => { if (count > 0) { setNotify(true); } }, [count]); const onAnimationEnd = () => { setNotify(false); }; return ( ); };