import React from 'react';

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

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

export const RichTextView: React.FC<CellViewProps<string>> = ({ value }) => (
  <CellViewLayout>
    <CellRichTextView value={value} />
  </CellViewLayout>
);
