Files
supabase/studio/components/interfaces/Support/DisabledStateForFreeTier.tsx
T

46 lines
1.5 KiB
TypeScript

import Link from 'next/link'
import { Button, IconAlertCircle, IconExternalLink } from 'ui'
import InformationBox from 'components/ui/InformationBox'
interface DisabledStateForFreeTierProps {
projectRef: string
category: string
}
const DisabledStateForFreeTier = ({ projectRef, category }: DisabledStateForFreeTierProps) => {
return (
<div className="px-6">
<InformationBox
hideCollapse
defaultVisibility={true}
icon={<IconAlertCircle className="text-scale-1200" size="large" strokeWidth={1.5} />}
title={`Support for ${category} is only available on the Pro plan`}
description={
<div className="space-y-4 mb-1">
<p>Upgrade your project to the Pro plan for support in this area</p>
<div className="flex items-center space-x-2">
<Link
href={`/project/${projectRef}/settings/billing/subscription?panel=subscriptionPlan`}
>
<a>
<Button>Upgrade project</Button>
</a>
</Link>
<Link href="https://supabase.com/pricing">
<a target="_blank" rel="noreferrer">
<Button type="default" icon={<IconExternalLink size={14} />}>
About the Pro plan
</Button>
</a>
</Link>
</div>
</div>
}
/>
</div>
)
}
export default DisabledStateForFreeTier