({
children,
...props
}: React.ComponentPropsWithoutRef<typeof CodeGroup>)
| 394 | } |
| 395 | |
| 396 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected