import React from 'react' import type { ImageProps } from './image' import AspectRatio from '../AspectRatio/AspectRatio.tsx' import ConditionalWrapper from '../ConditionalWrapper/ConditionalWrapper.tsx' import { classNames } from '../../utils/classNames' import styles from './image.module.scss' export type Props = ImageProps> const Image = ({ src, alt, width, height, lazy, ratio, center, full, rounded, className, ...rest }: Props) => { const classes = classNames([ styles.img, center && styles.center, full && styles[full], rounded && styles[rounded], className ]) return ( ( {children} )} > {alt ) } export default Image