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

export const ColorView: React.FC<CellViewProps<string | undefined>> = ({
  value,
}) => (
  <CellViewLayout>
    <CellColorView value={value} />
  </CellViewLayout>
);
