| 1 |
import Grid from 'elementor-app/ui/grid/grid'; |
| 2 |
import Button from '../button'; |
| 3 |
import SkipButton from '../skip-button'; |
| 4 |
|
| 5 |
export default function FooterButtons( { actionButton, skipButton, className } ) { |
| 6 |
let classNames = 'e-onboarding__footer'; |
| 7 |
|
| 8 |
if ( className ) { |
| 9 |
classNames += ' ' + className; |
| 10 |
} |
| 11 |
|
| 12 |
return ( |
| 13 |
<Grid container alignItems="center" justify="space-between" className={ classNames }> |
| 14 |
{ actionButton && <Button buttonSettings={ actionButton } type="action" /> } |
| 15 |
{ skipButton && <SkipButton button={ skipButton } /> } |
| 16 |
</Grid> |
| 17 |
); |
| 18 |
} |
| 19 |
|
| 20 |
FooterButtons.propTypes = { |
| 21 |
actionButton: PropTypes.object, |
| 22 |
skipButton: PropTypes.object, |
| 23 |
className: PropTypes.string, |
| 24 |
}; |
| 25 |
|