MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / getPanelTitle

Function getPanelTitle

apps/baseai.dev/src/components/Code.tsx:32–46  ·  view source on GitHub ↗
({
	title,
	language
}: {
	title?: string;
	language?: string;
})

Source from the content-addressed store, hash-verified

30};
31
32function getPanelTitle({
33 title,
34 language
35}: {
36 title?: string;
37 language?: string;
38}) {
39 if (title) {
40 return title;
41 }
42 if (language && language in languageNames) {
43 return languageNames[language];
44 }
45 return '';
46}
47
48function ClipboardIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
49 return (

Callers 2

CodeGroupHeaderFunction · 0.85
CodeGroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected