Files
supabase/apps/studio/hooks/misc/useHideSidebar.ts
barcofourie a054053f75 feat: adds success message to link support query (#40773)
* feat: adds success message to link support query

* style: fixes styling

* Use existing support form components + fix styling issues + refactor and clean up

* nit

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-11-26 09:57:16 +02:00

15 lines
344 B
TypeScript

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
}