mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
29 lines
825 B
TypeScript
29 lines
825 B
TypeScript
import { CreateTableInstructionsDialog } from './CreateTable/CreateTableInstructionsDialog'
|
|
import {
|
|
ScaffoldHeader,
|
|
ScaffoldSectionDescription,
|
|
ScaffoldSectionTitle,
|
|
} from '@/components/layouts/Scaffold'
|
|
|
|
interface BucketHeaderProps {
|
|
showActions?: boolean
|
|
}
|
|
|
|
export const BucketHeader = ({ showActions = true }: BucketHeaderProps) => {
|
|
return (
|
|
<ScaffoldHeader className="pt-0 flex flex-row justify-between items-end gap-x-8">
|
|
<div>
|
|
<ScaffoldSectionTitle>Tables</ScaffoldSectionTitle>
|
|
<ScaffoldSectionDescription>
|
|
Analytics tables stored in this bucket
|
|
</ScaffoldSectionDescription>
|
|
</div>
|
|
{showActions && (
|
|
<div className="flex items-center gap-x-2">
|
|
<CreateTableInstructionsDialog />
|
|
</div>
|
|
)}
|
|
</ScaffoldHeader>
|
|
)
|
|
}
|