AwsMarketplaceAutoRenewalWarning.tsx37 lines · main
| 1 | import dayjs from 'dayjs' |
| 2 | import Link from 'next/link' |
| 3 | import { Alert, AlertDescription, AlertTitle } from 'ui' |
| 4 | |
| 5 | interface Props { |
| 6 | awsContractEndDate: string |
| 7 | awsContractSettingsUrl: string |
| 8 | } |
| 9 | |
| 10 | const AwsMarketplaceAutoRenewalWarning = ({ |
| 11 | awsContractEndDate, |
| 12 | awsContractSettingsUrl, |
| 13 | }: Props) => { |
| 14 | return ( |
| 15 | <div className="mt-5 mb-10"> |
| 16 | <Alert variant="warning"> |
| 17 | <AlertTitle className="text-foreground font-bold text-orange-1000"> |
| 18 | “Auto Renewal” is turned OFF for your AWS Marketplace subscription |
| 19 | </AlertTitle> |
| 20 | <AlertDescription className="flex flex-col gap-3 wrap-break-word"> |
| 21 | <div> |
| 22 | As a result, your Briven organization will be downgraded to the Free Plan on{' '} |
| 23 | {dayjs(awsContractEndDate).format('MMMM DD')}. If you have more than 2 projects running, |
| 24 | all your projects will be paused. To ensure uninterrupted service, enable “Auto Renewal” |
| 25 | in your {''} |
| 26 | <Link href={awsContractSettingsUrl} target="_blank" className="underline"> |
| 27 | AWS Marketplace subscription settings |
| 28 | </Link> |
| 29 | . |
| 30 | </div> |
| 31 | </AlertDescription> |
| 32 | </Alert> |
| 33 | </div> |
| 34 | ) |
| 35 | } |
| 36 | |
| 37 | export default AwsMarketplaceAutoRenewalWarning |