Home / Function/ CloseConfirmationModal() — supabase Function Reference

CloseConfirmationModal() — supabase Function Reference

Architecture documentation for the CloseConfirmationModal() function in EditSecretSheet.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx lines 215–234

const CloseConfirmationModal = ({
  visible,
  onClose,
  onCancel,
}: ConfirmOnCloseModalProps): ReactNode => {
  return (
    <ConfirmationModal
      visible={visible}
      title="Discard changes"
      confirmLabel="Discard"
      onCancel={onCancel}
      onConfirm={onClose}
    >
      <p className="text-sm text-foreground-light">
        There are unsaved changes. Are you sure you want to close the panel? Your changes will be
        lost.
      </p>
    </ConfirmationModal>
  )
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free