import {PortableText, PortableTextProps} from '@portabletext/react' import {Card, Code, Text} from '@sanity/ui' const CODE_LANGUAGE: Record = { tsx: 'typescript', } const components: PortableTextProps['components'] = { block: { normal: ({children}) => ( {children} ), }, types: { code: ({value}) => ( {value?.code} ), }, } export function Blocks(props: {value?: any[]}): React.ReactNode { const {value = []} = props return }