import type { PageSectionComponent } from '../types';
import type { InlineImageProps } from './types';

import { InlineImageSectionView } from './InlineImageSectionView';

const InlineImageSection: PageSectionComponent<InlineImageProps> = ({
  src,
  srcWidth,
  srcHeight,
  altText,
  scale,
}) => (
  <InlineImageSectionView
    testId="inlineImage"
    src={src}
    srcWidth={srcWidth}
    srcHeight={srcHeight}
    altText={altText}
    scale={scale}
  />
);

export default InlineImageSection;
