mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
* storage page components * Nit fixes * Small refactor --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import { ExternalLink, FolderClock } from 'lucide-react'
|
|
import Link from 'next/link'
|
|
|
|
import { Button } from 'ui'
|
|
import { EmptyStatePresentational } from 'ui-patterns'
|
|
import { PageContainer } from 'ui-patterns/PageContainer'
|
|
import { PageSection, PageSectionContent } from 'ui-patterns/PageSection'
|
|
import { BUCKET_TYPES } from './Storage.constants'
|
|
|
|
export const BucketsComingSoon = ({ type }: { type: 'analytics' | 'vector' }) => {
|
|
return (
|
|
<PageContainer>
|
|
<PageSection>
|
|
<PageSectionContent>
|
|
<EmptyStatePresentational
|
|
icon={FolderClock}
|
|
title="Coming soon"
|
|
description={
|
|
type === 'analytics'
|
|
? BUCKET_TYPES.analytics.valueProp
|
|
: type === 'vector'
|
|
? BUCKET_TYPES.vectors.valueProp
|
|
: undefined
|
|
}
|
|
>
|
|
{type === 'analytics' && (
|
|
<Button asChild type="default" icon={<ExternalLink />}>
|
|
<Link
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
href="https://forms.supabase.com/analytics-buckets"
|
|
>
|
|
Request access
|
|
</Link>
|
|
</Button>
|
|
)}
|
|
</EmptyStatePresentational>
|
|
</PageSectionContent>
|
|
</PageSection>
|
|
</PageContainer>
|
|
)
|
|
}
|