You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
576 B

import React, { FC } from 'react';
import { Button } from '@grafana/ui';
import WithConfirm from '../../../WithConfirm/WithConfirm';
type Props = {
disabled: boolean;
onClick: () => void;
};
const RemoveCurrentConfigurationButton: FC<Props> = ({ disabled, onClick }) => (
<WithConfirm title="Are you sure to delete the plugin configuration?" confirmText="Remove">
<Button variant="destructive" onClick={onClick} size="md" disabled={disabled}>
Remove current configuration
</Button>
</WithConfirm>
);
export default RemoveCurrentConfigurationButton;