'use client' import { PortableText, type PortableTextComponents } from 'next-sanity' import Image from 'next/image' import { urlFor } from '@/lib/sanity' const components: PortableTextComponents = { block: { normal: ({ children }) => (
{children}
), h1: ({ children }) => ({children}), }, marks: { strong: ({ children }) => ( {children} ), em: ({ children }) => {children}, code: ({ children }) => (
{children}
),
link: ({ value, children }) => (
{children}
),
},
list: {
bullet: ({ children }) => (