mirror of
https://github.com/supabase/supabase.git
synced 2026-07-06 09:44:25 +08:00
* 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.
45 lines
1.4 KiB
TypeScript
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
|