import type { FC, PropsWithChildren } from 'react'; import CodeBox from '@/components/Common/CodeBox'; import { getLanguageDisplayName } from '@/util/getLanguageDisplayName'; type CodeBoxProps = { className?: string; showCopyButton?: string }; const MDXCodeBox: FC> = ({ children: code, className, showCopyButton, }) => { const matches = className?.match(/language-(?.*)/); const language = matches?.groups?.language ?? ''; return ( {code} ); }; export default MDXCodeBox;