Files
supabase/apps/studio/components/interfaces/Storage/BucketsUpgradePlan.tsx
Danny WhiteandJoshen Lim 46ac132051 chore(studio): empty state improvements (#40807)
* migrations

* clearer value prop

* consistent verb

* migration input

* triggers

* extract trigger buttons

* database backups

* schema title

* unrelated nit

* fix

* shared component

* ui-patterns

* rename

* improve docs

* remove redundant overrides

* remove old file

* prettier fix

* fix type error

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-11-27 17:26:20 +08:00

33 lines
1.3 KiB
TypeScript

import { ScaffoldSection } from 'components/layouts/Scaffold'
import { AlphaNotice } from 'components/ui/AlphaNotice'
import { UpgradePlanButton } from 'components/ui/UpgradePlanButton'
import { AnalyticsBucket as AnalyticsBucketIcon, VectorBucket as VectorBucketIcon } from 'icons'
import { EmptyStatePresentational } from 'ui-patterns'
import { BUCKET_TYPES } from './Storage.constants'
export const BucketsUpgradePlan = ({ type }: { type: 'analytics' | 'vector' }) => {
return (
<ScaffoldSection isFullWidth>
<AlphaNotice
entity={type === 'analytics' ? 'Analytics buckets' : 'Vector buckets'}
feedbackUrl={
type === 'analytics'
? 'https://github.com/orgs/supabase/discussions/40116'
: 'https://github.com/orgs/supabase/discussions/40815'
}
/>
<EmptyStatePresentational
icon={type === 'analytics' ? AnalyticsBucketIcon : VectorBucketIcon}
title={
type === 'analytics' ? BUCKET_TYPES.analytics.valueProp : BUCKET_TYPES.vectors.valueProp
}
description={`Upgrade to Pro to use ${type} buckets for your project`}
>
<div className="flex items-center gap-x-2">
<UpgradePlanButton type="primary" plan="Pro" />
</div>
</EmptyStatePresentational>
</ScaffoldSection>
)
}