import * as React from 'react'; import Button, { ButtonLevel } from '../Button/Button'; import { _ } from '@joplin/lib/locale'; const styled = require('styled-components').default; interface Props { backButtonTitle?: string; hasChanges?: boolean; // eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied onCancelClick: Function; // eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied onSaveClick?: Function; // eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied 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