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

44 lines
1.4 KiB
TypeScript

import Link from 'next/link'
import { Button, IconAlertCircle, IconExternalLink } from 'ui'
import InformationBox from 'components/ui/InformationBox'
import { FC } from 'react'
interface Props {
projectRef: string
category: string
}
const DisabledStateForFreeTier: FC<Props> = ({ projectRef, category }) => {
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 tier`}
description={
<div className="space-y-4 mb-1">
<p>Upgrade your project to the Pro tier for support in this area</p>
<div className="flex items-center space-x-2">
<Link href={`/project/${projectRef}/settings/billing/update`}>
<a>
<Button>Upgrade project</Button>
</a>
</Link>
<Link href="https://supabase.com/pricing">
<a target="_blank">
<Button type="default" icon={<IconExternalLink size={14} />}>
About the Pro tier
</Button>
</a>
</Link>
</div>
</div>
}
/>
</div>
)
}
export default DisabledStateForFreeTier