import Image, { ImageProps } from 'next/image' import React from 'react' import { getRootImageUrl, imageCalculateWidthHeight } from '../../utils/imageServices' import { storyblokImageLoader } from '../../utils/storyblokImageLoader' type LmSquareImageProps = { image: string size?: number | string sizeIsHeight?: boolean base64?: string imageProps?: Pick< ImageProps, | 'loading' | 'onLoad' | 'onClick' | 'priority' | 'quality' | 'alt' | 'className' | 'style' | 'fill' > } export default function LmSquareImage({ size, image, imageProps, sizeIsHeight }: LmSquareImageProps): JSX.Element { return ( {imageProps?.alt ) }