mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
feat(docs): ai prompts section (#30342)
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
This commit is contained in:
1 parent
72910fc30f
commit
2fb8b9f74c
18 files changed
+438
-50
No files matched your search
@@ -336,7 +336,7 @@ interface SkeletonProps extends PropsWithChildren {
|
||||
NavigationMenu?: ReactNode
|
||||
hideFooter?: boolean
|
||||
className?: string
|
||||
additionalNavItems?: Partial<NavMenuSection>[]
|
||||
additionalNavItems?: Record<string, Partial<NavMenuSection>[]>
|
||||
}
|
||||
|
||||
function TopNavSkeleton({ children }) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'katex/dist/katex.min.css'
|
||||
import { type PropsWithChildren } from 'react'
|
||||
import type { ReactNode, PropsWithChildren } from 'react'
|
||||
|
||||
import { type NavMenuSection } from '~/components/Navigation/Navigation.types'
|
||||
import { LayoutMainContent } from '~/layouts/DefaultLayout'
|
||||
@@ -8,9 +8,13 @@ import { SidebarSkeleton } from '~/layouts/MainSkeleton'
|
||||
const Layout = ({
|
||||
children,
|
||||
additionalNavItems,
|
||||
}: PropsWithChildren<{ additionalNavItems?: Partial<NavMenuSection>[] }>) => {
|
||||
NavigationMenu,
|
||||
}: PropsWithChildren<{
|
||||
additionalNavItems?: Record<string, Partial<NavMenuSection>[]>
|
||||
NavigationMenu?: ReactNode
|
||||
}>) => {
|
||||
return (
|
||||
<SidebarSkeleton additionalNavItems={additionalNavItems}>
|
||||
<SidebarSkeleton NavigationMenu={NavigationMenu} additionalNavItems={additionalNavItems}>
|
||||
<LayoutMainContent className="pb-0">{children}</LayoutMainContent>
|
||||
</SidebarSkeleton>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user