mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 15:49:09 +03:00
Add a contributing guide to docs, which links to resources for contributors and includes examples of usable components when writing docs content.
17 lines
450 B
TypeScript
17 lines
450 B
TypeScript
'use client'
|
|
|
|
import { usePathname } from 'next/navigation'
|
|
import { type PropsWithChildren } from 'react'
|
|
|
|
import { getMenuId } from '~/components/Navigation/NavigationMenu/NavigationMenu.utils'
|
|
import Layout from '~/layouts/guides'
|
|
|
|
const GuidesLayout = ({ children }: PropsWithChildren) => {
|
|
const pathname = usePathname()
|
|
const menuId = getMenuId(pathname)
|
|
|
|
return <Layout menuId={menuId}>{children}</Layout>
|
|
}
|
|
|
|
export default GuidesLayout
|