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

export const AddressCellView: React.FC<CellViewProps<Address | undefined>> = ({
  value,
}) => (
  <CellViewLayout>
    <CellAddressView data={value} />
  </CellViewLayout>
);
