import React from 'react' import Message from '../../Message' import { Layout } from '../Layout' import RichText from '../../RichText' import { ContentProps } from '../../types' import * as ComponentWorkarounds from '../Workarounds' interface CustomCodeComponentProps extends ContentProps {} declare module 'react' { // eslint-disable-next-line @typescript-eslint/no-namespace namespace JSX { interface IntrinsicElements { 'custom-code-component': { path: string version: string id: string children: React.ReactNode } } } } const CustomCodeComponent: React.FC< React.PropsWithChildren > = ({ content: { path, versionRange, id, layoutWidth = 'in-line', attributes = {}, body, }, }: CustomCodeComponentProps) => { return ( {body?.structured && } ) } export default CustomCodeComponent