Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

344 B
Raw Blame
import { usePathname } from 'next/navigation'

export function useHideSidebar() {
  const pathname = usePathname() ?? ''

  const shouldHide =
    pathname.startsWith('/account') ||
    pathname.startsWith('/new') ||
    pathname.startsWith('/support') ||
    pathname === '/organizations' ||
    pathname === '/sign-in'

  return shouldHide
}