mirror of
https://github.com/supabase/supabase.git
synced 2026-05-11 19:26:38 +08:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Logo field now accepts/editable logo URL, plus a new storage-based Logo Picker to select or remove images from project storage. * Full storage picker: browse buckets, columns/list views, search, drag‑and‑drop uploads, file previews (image/audio/video), and single-file selection with responsive mobile/desktop layouts. * **Refactor** * Logo submission streamlined to send the provided URL directly (legacy file-read/upload flow removed). <!-- end of auto-generated comment: release notes by coderabbit.ai -->
31 lines
778 B
TypeScript
31 lines
778 B
TypeScript
import { BucketPlus } from 'icons'
|
|
import { EmptyStatePresentational } from 'ui-patterns'
|
|
|
|
import { CreateBucketButton } from './NewBucketButton'
|
|
import { BUCKET_TYPES } from './Storage.constants'
|
|
|
|
interface EmptyBucketStateProps {
|
|
bucketType: keyof typeof BUCKET_TYPES
|
|
className?: string
|
|
onCreateBucket: () => void
|
|
}
|
|
|
|
export const EmptyBucketState = ({
|
|
bucketType,
|
|
className,
|
|
onCreateBucket,
|
|
}: EmptyBucketStateProps) => {
|
|
const config = BUCKET_TYPES[bucketType]
|
|
|
|
return (
|
|
<EmptyStatePresentational
|
|
icon={BucketPlus}
|
|
title={`Create ${config.article} ${config.singularName} bucket`}
|
|
description={config.valueProp}
|
|
className={className}
|
|
>
|
|
<CreateBucketButton onClick={onCreateBucket} />
|
|
</EmptyStatePresentational>
|
|
)
|
|
}
|