import { useState } from 'react'
import {
Button,
Dialog,
DialogContent,
DialogFooter,
DialogHeader,
DialogSection,
DialogSectionSeparator,
DialogTitle,
DialogTrigger,
} from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
import { INTERNAL_SCHEMAS, useIsProtectedSchema } from '@/hooks/useProtectedSchemas'
export const ProtectedSchemaDialog = ({ onClose }: { onClose: () => void }) => {
return (
<>
The following schemas are managed by Supabase and are currently protected from write
access through the dashboard.
These schemas are critical to the functionality of your Supabase project and hence we
highly recommend not altering them.
You can, however, still interact with those schemas through the SQL Editor although we
advise you only do so if you know what you are doing.
{schema}
))}
{schema} schema is used by Supabase to connect to analytics buckets and
is read-only through the dashboard.
The {schema} schema is used by Supabase to connect to vector buckets and is
read-only through the dashboard.
The {schema} schema is managed by Supabase and is read-only through the
dashboard.