mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
## Problem Now that we migrated old components to their new shadcn alternatives, we don't need the `_Shadcn_` suffix anymore. ## Solution Remove it <img width="659" height="609" alt="image" src="https://github.com/user-attachments/assets/2d7271a9-066a-4dcc-92fe-729b106d2c2f" />
30 lines
890 B
TypeScript
30 lines
890 B
TypeScript
import { useParams } from 'common'
|
|
import { AlertCircle } from 'lucide-react'
|
|
import { Alert, AlertDescription, AlertTitle } from 'ui'
|
|
|
|
import { InlineLink } from '@/components/ui/InlineLink'
|
|
|
|
interface DataApiDisabledStateProps {
|
|
description: string
|
|
}
|
|
|
|
export const DataApiDisabledState = ({ description }: DataApiDisabledStateProps) => {
|
|
const { ref: projectRef } = useParams()
|
|
|
|
return (
|
|
<div className="flex w-full flex-1 items-center justify-center p-10">
|
|
<Alert className="max-w-md">
|
|
<AlertCircle size={16} />
|
|
<AlertTitle>Data API is disabled</AlertTitle>
|
|
<AlertDescription>
|
|
Enable the Data API in the{' '}
|
|
<InlineLink href={`/project/${projectRef}/integrations/data_api/overview`}>
|
|
Overview
|
|
</InlineLink>{' '}
|
|
tab to {description}.
|
|
</AlertDescription>
|
|
</Alert>
|
|
</div>
|
|
)
|
|
}
|