import { useState } from 'react' import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button, IconAlertCircle, Modal, } from 'ui' import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas' export const ProtectedSchemaModal = ({ visible, onClose, }: { visible: boolean onClose: () => void }) => { return ( } onCancel={() => onClose()} >

The following schemas are managed by Supabase and are currently protected from write access through the dashboard.

{EXCLUDED_SCHEMAS.map((schema) => ( {schema} ))}

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.

) } const ProtectedSchemaWarning = ({ schema, entity }: { schema: string; entity: string }) => { const [showModal, setShowModal] = useState(false) return ( <> Currently viewing {entity} from a protected schema

The {schema} schema is managed by Supabase and is read-only through the dashboard.

setShowModal(false)} /> ) } export default ProtectedSchemaWarning