Files
supabase/apps/studio/components/ui/HighAvailability/HighAvailabilityDisabledEmptyState.tsx
Gildas Garcia b30db91d71 chore: cleanup UI patterns exports (#47406)
## Problem

We now export components under a subpath in ui-patterns to avoid barrel
files as they slow down every tools (from IDE to linters, etc.) and may
also affect bundles our users have to download.

## Solution

- Remove the UI patterns index file
- Fix invalid impors
2026-06-30 09:23:17 +02:00

33 lines
983 B
TypeScript

import type { LucideIcon } from 'lucide-react'
import { Server } from 'lucide-react'
import type { ReactNode } from 'react'
import { cn } from 'ui'
import { EmptyStatePresentational } from 'ui-patterns/EmptyStatePresentational'
const DEFAULT_TITLE = 'This feature is unavailable on High Availability projects'
const DEFAULT_DESCRIPTION =
"We're working to bring this feature to High Availability projects. Contact support if this is blocking your work."
interface HighAvailabilityDisabledEmptyStateProps {
title?: string
description?: ReactNode
icon?: LucideIcon | ReactNode
className?: string
}
export function HighAvailabilityDisabledEmptyState({
title = DEFAULT_TITLE,
description = DEFAULT_DESCRIPTION,
icon = Server,
className,
}: HighAvailabilityDisabledEmptyStateProps) {
return (
<EmptyStatePresentational
icon={icon}
title={title}
description={description}
className={cn('w-full max-w-md mx-auto', className)}
/>
)
}