Files
supabase/apps/studio/components/interfaces/Support/DisabledStateForFreeTier.tsx
Ivan Vasilov 436bdb10ae chore: Move the studio app to apps/studio (#18915)
* Move all studio files from /studio to /apps/studio.

* Move studio specific prettier ignores.

* Fix the ui references from studio.

* Fix the css imports.

* Fix all package.json issues.

* Fix the prettier setup for the studio app.

* Add .turbo folder to prettierignore.

* Fix the github workflows.
2023-11-15 12:38:55 +01:00

45 lines
1.4 KiB
TypeScript

import Link from 'next/link'
import { Button, IconAlertCircle, IconExternalLink } from 'ui'
import InformationBox from 'components/ui/InformationBox'
interface DisabledStateForFreeTierProps {
organizationSlug: string
category: string
}
const DisabledStateForFreeTier = ({
organizationSlug,
category,
}: DisabledStateForFreeTierProps) => {
return (
<div className="px-6">
<InformationBox
hideCollapse
defaultVisibility={true}
icon={<IconAlertCircle className="text-foreground" 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">
<Button asChild>
<Link href={`/org/${organizationSlug}/billing?panel=subscriptionPlan`}>
Upgrade project
</Link>
</Button>
<Button asChild type="default" icon={<IconExternalLink size={14} />}>
<Link href="https://supabase.com/pricing" target="_blank" rel="noreferrer">
About the Pro plan
</Link>
</Button>
</div>
</div>
}
/>
</div>
)
}
export default DisabledStateForFreeTier