diff --git a/app/layout/upcoming-changes/component.tsx b/app/layout/upcoming-changes/component.tsx new file mode 100644 index 0000000000..2dddc432ed --- /dev/null +++ b/app/layout/upcoming-changes/component.tsx @@ -0,0 +1,44 @@ +import { useCallback } from 'react'; + +import { useCookies } from 'react-cookie'; + +import { useFeatureFlags } from 'hooks/feature-flags'; + +import Button from 'components/button'; +import Wrapper from 'layout/wrapper'; + +export const UpcomingChangesBanner = (): JSX.Element => { + const [cookies, setCookie] = useCookies(['upcoming-changes']); + const { upcomingChanges } = useFeatureFlags(); + + const onAccept = useCallback(() => { + setCookie('upcoming-changes', 'true', { path: '/' }); + }, [setCookie]); + + if (cookies['upcoming-changes'] === 'true' || !upcomingChanges) return null; + + return ( +
+ MaPP is undergoing a transformation with an enhanced interface and new features released + by the end of January 2024! Your existing projects + will seamlessly transition to the new version. For any concerns, feel free to reach out + to us. Stay tuned for a better planning experience! +
+ +