feat(SW-3228): Move Image to design-system * Move Image to design-system * Merge branch 'master' into feat/sw-3228-move-image-to-design-system Approved-by: Linus Flood
24 lines
486 B
TypeScript
24 lines
486 B
TypeScript
import { MaterialIcon } from '../Icons/MaterialIcon'
|
|
|
|
import styles from './imageFallback.module.css'
|
|
|
|
interface ImageFallbackProps {
|
|
width?: string
|
|
height?: string
|
|
}
|
|
|
|
export default function ImageFallback({
|
|
width = '100%',
|
|
height = '100%',
|
|
}: ImageFallbackProps) {
|
|
return (
|
|
<div className={styles.imageFallback} style={{ width, height }}>
|
|
<MaterialIcon
|
|
icon="imagesmode"
|
|
size={32}
|
|
color="Icon/Interactive/Disabled"
|
|
/>
|
|
</div>
|
|
)
|
|
}
|