import type { ReactNode } from 'react'; import { Anchor } from './Anchor'; export interface CodeListingProps { /** * The value of this heading. */ children: ReactNode; /** * Additional class names to apply to the root element. */ className?: string | undefined; /** * The href of this heading. */ href?: string | undefined; } export function CodeHeading({ href, className, children }: CodeListingProps) { return (