import React from 'react';
import { CellMediaGalleryView } from '@wix/patterns-fields';
import type { WixCodeGalleryItem } from '@wix/patterns-fields/auto-field-types';
import type { CellViewProps } from '../../types';

export const MediaGalleryView: React.FC<
  CellViewProps<WixCodeGalleryItem[] | null>
> = ({ value }) => (
  <CellMediaGalleryView data={value} dataHook="media-gallery-view" />
);
