Files
Joshen Lim 27e89ed64e Analytics bucket support creating bucket tables in dashboard (#40858)
* Midway

* Hook up create/delete table, and update all iceberg RQs with mgmt API routes

* Add insert data CTA, update create table logic for decimal and fixed types

* Clean up

* Nit

* Fix test
2025-12-02 22:17:13 +08:00

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