import React, { FC } from 'react'; import { e2e } from '@grafana/e2e'; import config from 'app/core/config'; export interface Props { isReadOnly: boolean; onDelete: () => void; onSubmit: (event: any) => void; onTest: (event: any) => void; } const ButtonRow: FC = ({ isReadOnly, onDelete, onSubmit, onTest }) => { return (
{!isReadOnly && ( )} {isReadOnly && ( )} Back
); }; export default ButtonRow;