import * as React from 'react'; import { ParallaxBackgroundControlsProps } from '../types/controls'; import TextField from '@material-ui/core/TextField'; import { BottomToolbar } from '@react-page/ui'; const ParallaxBackgroundDefaultControls: React.SFC< ParallaxBackgroundControlsProps > = props => { const { focused, state: { background = '', darken = 0.3 }, } = props; return ( props.handleBackgroundPreviewChange(e.target.value)} onBlur={props.commitBackground} /> props.handleDarkenPreviewChange(e.target.value)} onBlur={props.commitDarken} /> ); }; export default ParallaxBackgroundDefaultControls;