Files
supabase/apps/studio/components/interfaces/Storage/EmptyBucketState.tsx
Ivan Vasilov 35905e70d5 feat: Add a logo picker for OAuth app creation sheet (#44995)
<!-- 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 -->
2026-05-06 16:44:18 +02:00

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>
)
}