DataApiDisabledAlert.tsx 579 B

12345678910111213141516171819
  1. import { Alert, AlertDescription, AlertTitle, WarningIcon } from 'ui'
  2. export const DataApiDisabledAlert = () => {
  3. return (
  4. <Alert variant="warning">
  5. <WarningIcon />
  6. <AlertTitle>No schemas can be queried</AlertTitle>
  7. <AlertDescription>
  8. <p>
  9. With this setting disabled, you will not be able to query any schemas via the Data API.
  10. </p>
  11. <p>
  12. You will see errors from the Postgrest endpoint{' '}
  13. <code className="text-code-inline">/rest/v1/</code>.
  14. </p>
  15. </AlertDescription>
  16. </Alert>
  17. )
  18. }