import * as React from 'react'; import Button, { ButtonLevel } from '../Button/Button'; const styled = require('styled-components').default; const { _ } = require('lib/locale.js'); interface Props { backButtonTitle?: string, hasChanges?: boolean, onCancelClick: Function, onSaveClick?: Function, onApplyClick?: Function, } export const StyledRoot = styled.div` display: flex; align-items: center; padding: 10px; background-color: ${(props:any) => props.theme.backgroundColor3}; padding-left: ${(props:any) => props.theme.configScreenPadding}px; border-top-width: 1px; border-top-style: solid; border-top-color: ${(props:any) => props.theme.dividerColor}; `; export default function ButtonBar(props:Props) { function renderOkButton() { if (!props.onSaveClick) return null; return