import { useEffect, useState } from 'react'; import { Row, Col } from 'reactstrap' import SampleBackground from '../../assets/img/stepBackgrounds/step1.jpg'; export default function Step(props) { const [stepBackgroundImage, setStepBackground] = useState(SampleBackground) useEffect(() => setStepBackground(props.backgroundImage || SampleBackground), [props.backgroundImage]) return (