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 (
Data API is disabled Enable the Data API in the{' '} Overview {' '} tab to {description}.
) }