'use client';
import { BlocksRenderer } from '@strapi/blocks-react-renderer';
import Link from 'next/link';

export default function BlockRenderer({ content }) {
  return (
    <BlocksRenderer
      content={content}
      blocks={{
        link: ({ children, url }) => (
          <Link href={url} target="_blank">
            {children}
          </Link>
        ),
      }}
    />
  );
}
