Home / Function/ Page() — supabase Function Reference

Page() — supabase Function Reference

Architecture documentation for the Page() function in EditSecretModal.test.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/Integrations/Vault/Secrets/__tests__/EditSecretModal.test.tsx lines 22–39

const Page = ({ onClose }: { onClose: () => void }) => {
  const [open, setOpen] = useState(false)

  return (
    <ProjectContextProvider projectRef="default">
      <button onClick={() => setOpen(true)}>Open</button>

      <EditSecretModal
        visible={open}
        secret={secret}
        onClose={() => {
          setOpen(false)
          onClose()
        }}
      />
    </ProjectContextProvider>
  )
}

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free