import React from 'react' ; import LoadingInfo from 'components/LoadingInfo' ; import './Question.scss' ; type Props = { text : string ; loading : boolean ; } ; const Question = ( props ) => { const { loading , text } = props ; return ( < div className = "test__question" > { ! loading && text } { loading && < LoadingInfo colorHEX = "var(--black-1)" / > } < /div>); } ; export default Question ;