import PropTypes from 'prop-types';

export const ASSET_PROP_TYPE = PropTypes.shape({
  file: PropTypes.shape({
    url: PropTypes.string
  })
});

export const ASSET_FIELD_PROP_TYPE = PropTypes.oneOfType([
  ASSET_PROP_TYPE,
  PropTypes.arrayOf(ASSET_PROP_TYPE)
]);

export const TRANSFORM_PROP_TYPES = PropTypes.shape({
  w: PropTypes.number,
  h: PropTypes.number,
  q: PropTypes.number,
  fmt: PropTypes.oneOf(['jpg', 'png', 'webp'])
});
