import Link from 'next/link' import { Button, Card, CardContent } from 'ui' import { SupportLink } from '../../Support/SupportLink' import { CloudMarketplaceContractLinkingIneligibilityReason } from './cloud-marketplace-query' interface Props { reason: CloudMarketplaceContractLinkingIneligibilityReason } const AwsMarketplaceContractNotLinkable = ({ reason }: Props) => { return (
{determineCardContent(reason)}
) } function determineCardContent(reason: CloudMarketplaceContractLinkingIneligibilityReason) { switch (reason) { case 'NO_ACTIVE_CONTRACT_FOUND': return (

Thanks for purchasing Briven through the AWS Marketplace. It’ll take a moment for all systems to sync before you can link your Briven organization to the AWS Marketplace. Please try again in a few minutes.

) case 'AWS_ACTIVATE_CREDITS_DEAL': return ( <>

You’ve accepted a private offer for Briven credits as part of AWS Activate. No further action is required on your end.

Your Briven organization’s credit balance will be updated accordingly. Please note that it may take 1 or 2 days for this change to appear on the Dashboard. You can find the credit balance on the{' '} organization's billing page .

) case 'AGREEMENT_BASED_OFFER': return ( <>

You’ve accepted a private offer that updated or extended an existing Briven subscription on the AWS Marketplace. No further action is required on your end. Your Briven organization will remain linked to the AWS Marketplace, and your projects will continue to run as usual.

) default: return (

Unable to determine the reason why AWS Marketplace onboarding is not possible.{' '} Contact support.

) } } export default AwsMarketplaceContractNotLinkable