Home / Function/ useSupportCommands() — supabase Function Reference

useSupportCommands() — supabase Function Reference

Architecture documentation for the useSupportCommands() function in Support.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  7a61c2c9_b57a_e734_a33a_21438f4f637d["useSupportCommands()"]
  7902296a_39c1_2b01_0b22_d5c1b0ad688b["StudioCommandMenu()"]
  7902296a_39c1_2b01_0b22_d5c1b0ad688b -->|calls| 7a61c2c9_b57a_e734_a33a_21438f4f637d
  style 7a61c2c9_b57a_e734_a33a_21438f4f637d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/App/CommandMenu/Support.tsx lines 9–39

export const useSupportCommands = () => {
  const commands = useMemo(
    () =>
      [
        {
          id: 'system-status',
          name: 'View system status',
          value: 'Support: View system status',
          route: 'https://status.supabase.com',
          icon: () => <Activity />,
        },
        {
          id: 'discord-community',
          name: 'Ask Discord community',
          value: 'Support: Ask Discord community',
          route: 'https://discord.supabase.com',
          icon: () => <LifeBuoy />,
        },
        {
          id: 'support-team',
          name: 'Contact support',
          value: 'Support: Contact support',
          route: 'https://www.supabase.com/support',
          icon: () => <LifeBuoy />,
        },
      ] as Array<ICommand>,
    []
  )

  useRegisterCommands(COMMAND_MENU_SECTIONS.SUPPORT, commands, { enabled: IS_PLATFORM })
}

Subdomains

Frequently Asked Questions

What does useSupportCommands() do?
useSupportCommands() is a function in the supabase codebase.
What calls useSupportCommands()?
useSupportCommands() is called by 1 function(s): StudioCommandMenu.

Analyze Your Own Codebase

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

Try Supermodel Free