import React from 'react';
import { CellMultiDocumentView } from '@wix/patterns-fields';
import type { CellViewProps } from '../../types';

export const MultiDocumentView: React.FC<CellViewProps<string[] | null>> = ({
  value,
  columnId,
  rowKey,
}) => (
  <CellMultiDocumentView
    value={value}
    dataHook="multi-document-view"
    fieldId={`multi-document-view-${columnId}-${rowKey}`}
  />
);
