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

export const EmailView: React.FC<CellViewProps<string>> = ({ value }) => (
  <CellViewLayout>
    <TextView data={value ?? ''} />
  </CellViewLayout>
);
