import React from 'react'; import { selectors } from '@grafana/e2e-selectors'; import { Button, ButtonVariant, ModalsController, FullWidthButtonContainer } from '@grafana/ui'; import { DashboardModel } from 'app/features/dashboard/state'; import { SaveDashboardDrawer } from './SaveDashboardDrawer'; interface SaveDashboardButtonProps { dashboard: DashboardModel; onSaveSuccess?: () => void; } export const SaveDashboardButton: React.FC = ({ dashboard, onSaveSuccess }) => { return ( {({ showModal, hideModal }) => { return ( ); }} ); }; export const SaveDashboardAsButton: React.FC = ({ dashboard, onSaveSuccess, variant, }) => { return ( {({ showModal, hideModal }) => { return ( ); }} ); };