Merged in feat/sw-3228-move-image-to-design-system (pull request #2616)
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
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user