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

Function Pre

apps/baseai.dev/src/components/Code.tsx:396–407  ·  view source on GitHub ↗
({
	children,
	...props
}: React.ComponentPropsWithoutRef<typeof CodeGroup>)

Source from the content-addressed store, hash-verified

394}
395
396export function Pre({
397 children,
398 ...props
399}: React.ComponentPropsWithoutRef<typeof CodeGroup>) {
400 let isGrouped = useContext(CodeGroupContext);
401
402 if (isGrouped) {
403 return children;
404 }
405
406 return <CodeGroup {...props}>{children}</CodeGroup>;
407}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected