// @ts-nocheck
import React, { PropsWithChildren, ReactElement } from 'react';
import { View } from 'react-native';
import { IMGElementStateLoading } from './img-types';

/**
 * Default loading view for the {@link IMGElement} component.
 */
export default function IMGElementContentLoading({
  dimensions,
  children
}: PropsWithChildren<IMGElementStateLoading>): ReactElement {
  return (
    <View style={dimensions} testID="image-loading">
      {children}
    </View>
  );
}
