MCPcopy Create free account
hub / github.com/amaancoderx/skillui / CodeBlock

Function CodeBlock

components/CodeBlock.tsx:166–170  ·  view source on GitHub ↗
({ code, language, label, variant = 'editor', className = '' }: CodeBlockProps)

Source from the content-addressed store, hash-verified

164}
165
166export default function CodeBlock({ code, language, label, variant = 'editor', className = '' }: CodeBlockProps) {
167 if (variant === 'terminal') return <TerminalBlock code={code} label={label} className={className} />
168 if (variant === 'inline') return <InlineBlock code={code} className={className} />
169 return <EditorBlock code={code} language={language} label={label} className={className} />
170}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected