MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / renderContent

Function renderContent

src/components/code/CodeOptions.jsx:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 });
43
44 const renderContent = variant => {
45 const node = currentLang === 'JS' ? buckets.JS[variant] : buckets.TS[variant];
46 return node?.props?.children ? node : UNSUPPORTED;
47 };
48
49 const styleVariant = stylePreset === 'TW' ? 'tailwind' : 'css';
50

Callers 1

CodeOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected