MCPcopy Create free account
hub / github.com/QdabuliuQ/easy-resume / SectionModuleShell

Function SectionModuleShell

src/modules/layout/sectionModuleShell.tsx:20–130  ·  view source on GitHub ↗
({
  moduleId,
  activeModuleId,
  headerConfig,
  moduleType,
  globalStyle,
  showHeader = true,
  sectionOrdinal,
  children,
}: {
  moduleId: string;
  activeModuleId?: string;
  headerConfig: SectionHeaderConfig;
  moduleType?: string;
  globalStyle: GlobalStyle;
  showHeader?: boolean;
  sectionOrdinal?: number;
  children: ReactNode;
})

Source from the content-addressed store, hash-verified

18 <div className='text-black' style={{ color: RESUME_MODULE_BODY_TEXT_COLOR }}>
19 {children}
20 </div>
21 );
22}
23
24function SectionModuleShell({
25 moduleId,
26 activeModuleId,
27 headerConfig,
28 moduleType,
29 globalStyle,
30 showHeader = true,
31 sectionOrdinal,
32 children,
33}: {
34 moduleId: string;
35 activeModuleId?: string;
36 headerConfig: SectionHeaderConfig;
37 moduleType?: string;
38 globalStyle: GlobalStyle;
39 showHeader?: boolean;
40 sectionOrdinal?: number;
41 children: ReactNode;
42}) {
43 const t = normHeaderType(globalStyle);
44 const interactiveModuleId = activeModuleId ?? moduleId;
45
46 if (!showHeader) {
47 if (t === 7) {
48 return (
49 <div
50 id={moduleId}
51 {...{ [RESUME_MODULE_ID_ATTR]: interactiveModuleId }}
52 className='w-full cursor-pointer'
53 >
54 <div
55 className='min-h-0 min-w-0 overflow-visible rounded-sm border border-zinc-200 bg-zinc-50 px-3 py-2'
56 {...{ [RESUME_H7_PANEL_ATTR]: '' }}
57 >
58 <ModuleBody>{children}</ModuleBody>
59 </div>
60 </div>
61 );
62 }
63 return (
64 <div
65 id={moduleId}
66 {...{ [RESUME_MODULE_ID_ATTR]: interactiveModuleId }}
67 className='w-full cursor-pointer'
68 >
69 <ModuleBody>{children}</ModuleBody>
70 </div>
71 );
72 }
73
74 if (t === 7) {
75 const ruleColor = globalStyle.color ?? '#333';
76 return (
77 <div

Callers

nothing calls this directly

Calls 1

normHeaderTypeFunction · 0.85

Tested by

no test coverage detected