DuplicateSecretWarningModal() — supabase Function Reference
Architecture documentation for the DuplicateSecretWarningModal() function in DuplicateSecretWarningModal.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/DuplicateSecretWarningModal.tsx lines 11–36
export const DuplicateSecretWarningModal = ({
visible,
onCancel,
onConfirm,
isCreating,
secretName,
}: DuplicateSecretWarningModalProps) => {
return (
<ConfirmationModal
visible={visible}
size="medium"
title="Confirm replacing existing secret"
confirmLabel="Replace secret"
confirmLabelLoading="Replacing secret"
variant="warning"
loading={isCreating}
onCancel={onCancel}
onConfirm={onConfirm}
>
<p className="text-sm text-foreground-light">
A secret with the name "{secretName}" already exists. Continuing will replace the existing
secret with the new value. This action cannot be undone. Are you sure you want to proceed?
</p>
</ConfirmationModal>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free