import React from 'react' ; import classnames from 'classnames' ; import styles from './BackgroundWallpaper.module.scss' ; interface Props { src ? : string ; } export default function BackgroundWallpaper ( props ) { const { src } = props ; const backgroundImage = src ? `url(${ src })` : undefined ; const defaultBackgroundClassName = classnames ( styles . defaultBackground , { [ styles . backgroundSet ] : ! ! backgroundImage , } ) ; return ( < div className = { styles . wrapper } > < div className = { defaultBackgroundClassName } /> < div className = { styles . background } style = { { backgroundImage } } /> < /div>); }