mirror of
https://github.com/supabase/supabase.git
synced 2026-07-01 02:24:32 +08:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
44 lines
1.7 KiB
TypeScript
44 lines
1.7 KiB
TypeScript
import { AnalyticsBucket as AnalyticsBucketIcon, VectorBucket as VectorBucketIcon } from 'icons'
|
|
import { EmptyStatePresentational } from 'ui-patterns'
|
|
import { PageContainer } from 'ui-patterns/PageContainer'
|
|
import { PageSection, PageSectionContent } from 'ui-patterns/PageSection'
|
|
|
|
import { BUCKET_TYPES } from './Storage.constants'
|
|
import { AlphaNotice } from '@/components/ui/AlphaNotice'
|
|
import { UpgradePlanButton } from '@/components/ui/UpgradePlanButton'
|
|
|
|
export const BucketsUpgradePlan = ({ type }: { type: 'analytics' | 'vector' }) => {
|
|
return (
|
|
<PageContainer>
|
|
<PageSection>
|
|
<PageSectionContent className="flex flex-col gap-y-8">
|
|
<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
|
|
source={`${type}Buckets`}
|
|
featureProposition={`use ${type} buckets`}
|
|
/>
|
|
</div>
|
|
</EmptyStatePresentational>
|
|
</PageSectionContent>
|
|
</PageSection>
|
|
</PageContainer>
|
|
)
|
|
}
|