import { Blocks, type StreamFieldBlock } from "@/components/blocks/Blocks";
import styles from './pageContent.module.scss';

export const PageContent = ({
  blocks,
  className,
}: {
  blocks?: Array<StreamFieldBlock | null> | null;
  className?: string;
}) => {
  return (
    <div className={`${styles.pageContent}${className ? ` ${className}` : ''}`}>
      <Blocks blocks={blocks} pageContent />
    </div>
  )
};
