mirror of
https://github.com/supabase/supabase.git
synced 2026-09-09 11:30:17 +08:00
- use `MobileSheetNav` for all `LayoutSidebar` panels on mobile viewport - move `Help` to LayoutSidepanel for a more cohesive experience - enables opening the help panel using params `?sidebar=help-panel` https://github.com/user-attachments/assets/a84e56f0-f2e2-4217-89a2-ba895bb7d352
13 lines
471 B
TypeScript
13 lines
471 B
TypeScript
import { SupportFormUrlKeys } from '@/components/interfaces/Support/SupportForm.utils'
|
|
|
|
export function getSupportLinkQueryParams(
|
|
project: { parent_project_ref?: string } | undefined,
|
|
org: { slug?: string } | undefined,
|
|
routerRef: string | undefined
|
|
): Partial<SupportFormUrlKeys> | undefined {
|
|
const projectRef = project?.parent_project_ref ?? routerRef
|
|
if (projectRef) return { projectRef }
|
|
if (org?.slug) return { orgSlug: org.slug }
|
|
return undefined
|
|
}
|