MCPcopy Create free account
hub / github.com/Y80/bmm / UserLayoutShell

Function UserLayoutShell

src/app/user/UserLayoutShell.tsx:35–49  ·  view source on GitHub ↗
(props: UserLayoutShellProps)

Source from the content-addressed store, hash-verified

33 * - 非 CMS 路径:显示顶部导航栏(PublicAndUserNavbar)
34 */
35export default function UserLayoutShell(props: UserLayoutShellProps) {
36 const pathname = usePathname()
37 const showCmsLayout = isUserCmsPath(pathname)
38
39 if (showCmsLayout) {
40 return <CmsLayoutShell>{props.children}</CmsLayoutShell>
41 }
42
43 return (
44 <>
45 <PublicAndUserNavbar tags={props.tags} totalBookmarks={props.totalBookmarks} />
46 <div className="h-screen pt-16">{props.children}</div>
47 </>
48 )
49}

Callers

nothing calls this directly

Calls 1

isUserCmsPathFunction · 0.85

Tested by

no test coverage detected