Skip to content

Commit 05cd722

Browse files
authored
added banner component for Pinpoint EOL, put this banner on analytics and push notification pages (#8362)
1 parent 6b3d93a commit 05cd722

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

src/components/Layout/Layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import {
3737
} from '@/components/NextPrevious';
3838
import { Modal } from '@/components/Modal';
3939
import { Gen1Banner } from '@/components/Gen1Banner';
40+
import { PinpointEOLBanner } from '@/components/PinpointEOLBanner';
4041
import { ApiModalProvider } from '../ApiDocs/ApiModalProvider';
4142

4243
export const Layout = ({
@@ -281,6 +282,10 @@ export const Layout = ({
281282
{(isGen1GettingStarted || isGen1HowAmplifyWorks) && (
282283
<Gen1Banner currentPlatform={currentPlatform} />
283284
)}
285+
{(asPathWithNoHash.includes('/push-notifications/') ||
286+
asPathWithNoHash.includes('/analytics/')) && (
287+
<PinpointEOLBanner />
288+
)}
284289
{children}
285290
{showNextPrev && <NextPrevious />}
286291
</Flex>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import { Callout } from '@/components/Callout';
2+
import Link from 'next/link';
3+
import classNames from 'classnames';
4+
5+
export const PinpointEOLBanner = () => {
6+
return (
7+
<Callout backgroundColor="background.error">
8+
<Link
9+
href="https://docs.aws.amazon.com/pinpoint/latest/userguide/migrate.html"
10+
passHref
11+
className={classNames('amplify-link')}
12+
>
13+
AWS will end support for Amazon Pinpoint on October 30, 2026,
14+
</Link>
15+
, and is no longer accepting any new users as of May 20 (see the linked
16+
doc). The guidance is to use{' '}
17+
<Link
18+
href="https://aws.amazon.com/end-user-messaging"
19+
passHref
20+
className={classNames('amplify-link')}
21+
>
22+
AWS End User Messaging
23+
</Link>{' '}
24+
for push notifications and SMS,{' '}
25+
<Link
26+
href="https://aws.amazon.com/ses"
27+
passHref
28+
className={classNames('amplify-link')}
29+
>
30+
Amazon Simple Email Service
31+
</Link>{' '}
32+
for sending emails,{' '}
33+
<Link
34+
href="https://aws.amazon.com/connect/outbound/"
35+
passHref
36+
className={classNames('amplify-link')}
37+
>
38+
Amazon Connect
39+
</Link>{' '}
40+
for campaigns, journeys, endpoints, and engagement analytics. Pinpoint
41+
recommends{' '}
42+
<Link
43+
href="https://aws.amazon.com/kinesis"
44+
passHref
45+
className={classNames('amplify-link')}
46+
>
47+
Amazon Kinesis
48+
</Link>{' '}
49+
for event collection and mobile analytics.
50+
</Callout>
51+
);
52+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { PinpointEOLBanner } from './PinpointEOLBanner';

0 commit comments

Comments
 (0)