import React from 'react';

import { CellRichContentView } from '@wix/patterns-fields';

import type { CellViewProps } from '../../types';
import { CellViewLayout } from '../CellViewLayout';

export const RichContentView: React.FC<CellViewProps<unknown>> = ({
  value,
}) => (
  <CellViewLayout>
    <CellRichContentView value={value} />
  </CellViewLayout>
);
