Files
supabase/apps/studio/components/interfaces/Support/DisabledStateForFreeTier.tsx
Ivan VasilovandJoshen Lim 05a542ccea chore: Migrate all feather icons to lucide icons (#29038)
* Add lucide-react to docs (to make the autocomplete work).

* Migrate the docs app icons.

* Migrate the ui-patterns.

* Remove the old icons from ui package.

* Migrate the www app from react-feather icons.

* Migrate all of studio icons.

* Migrate the only component in design-system.

* Fix an old import in ui package. Revert an import in docs app.

* Fix some pages in www.

* Remove unneeded files used in generation of icons.

* Fix a prettier error.

* Fix more issues in www.

* Fix an issue in Log Date picker.

* Replace all string sizes with number sizes because the icons grew in some cases.

* Fix more imports in security page.

* Fix an extra import.

* Remove the size prop from all icons if they're in a button and they match the button size.

* Minor fixes for docs and www.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-09-04 19:46:21 +08:00

46 lines
1.4 KiB
TypeScript

import { AlertCircle, ExternalLink } from 'lucide-react'
import Link from 'next/link'
import { Button } 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
icon={<AlertCircle className="text-foreground" size={20} 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 organization 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 plan
</Link>
</Button>
<Button asChild type="default" icon={<ExternalLink />}>
<Link href="https://supabase.com/pricing" target="_blank" rel="noreferrer">
About the Pro Plan
</Link>
</Button>
</div>
</div>
}
/>
</div>
)
}
export default DisabledStateForFreeTier