()
| 21 | return useContext(CodeGroupContext).inCodeGroup |
| 22 | } |
| 23 | export function useCodeGroup() { |
| 24 | return useContext(CodeGroupContext) |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * This is a code group component that accepts `children` which should be a `RawCode` or a `Code` component and an optional `title: string`. |