|
123456789101112131415161718 |
- import {FC} from 'react';
-
- export interface ImageProps {
- src?: string;
- alt?: string;
- style?: React.CSSProperties;
- }
-
- export const Image: FC<ImageProps> = ({ src, alt, style, }) => (
- <img
- src={src}
- alt={alt}
- style={{
- ...style,
- width: '100%',
- }}
- />
- )
|