MCPcopy Create free account
hub / github.com/Packstack-Tech/packstack / Sidebar

Function Sidebar

frontend/src/app/components/Sidebar/Sidebar.tsx:5–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { SidebarWrapper, Header, Content } from "./styles";
4
5const Sidebar: React.FC = () => {
6 const { state } = useSidebar();
7 if (!state.show) {
8 return null;
9 }
10 return (
11 <SidebarWrapper>
12 <Header>
13 {state.title}
14 </Header>
15 <Content>
16 {state.content}
17 </Content>
18 </SidebarWrapper>
19 );
20};
21
22export default Sidebar;

Callers

nothing calls this directly

Calls 1

useSidebarFunction · 0.90

Tested by

no test coverage detected