MCPcopy Create free account
hub / github.com/code100x/daily-code / ProfileChilldren

Function ProfileChilldren

apps/web/components/ProfileChildren.tsx:8–25  ·  view source on GitHub ↗
({ children }: { children: React.ReactNode })

Source from the content-addressed store, hash-verified

6import { Menu } from "lucide-react";
7
8export default function ProfileChilldren({ children }: { children: React.ReactNode }) {
9 const [sidebarToggle, setSidebarToggle] = useRecoilState(profileSidebar);
10 return (
11 <div
12 className={`border-2 h-[88vh] lg:h-auto overflow-y-auto rounded-md ${sidebarToggle ? "col-span-8 lg:col-span-6" : "col-span-8 lg:col-span-6"} w-full`}
13 >
14 <div
15 onClick={() => setSidebarToggle((prev) => !prev)}
16 className="absolute cursor-pointer top-[7rem] right-[4rem] block lg:hidden"
17 >
18 <Menu />
19 </div>
20 <ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
21 <Providers>{children}</Providers>
22 </ThemeProvider>
23 </div>
24 );
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected