AwsMarketplaceAutoRenewalWarning.tsx 1.2 KB

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