import { css } from '@emotion/css'; import React, { useState } from 'react'; import { GrafanaTheme2 } from '@grafana/data'; import { Alert, ConfirmModal, useStyles2, Button } from '@grafana/ui'; interface Props { onHideApiKeys: () => void; } export const APIKeysMigratedCard = ({ onHideApiKeys }: Props): JSX.Element => { const [isModalOpen, setIsModalOpen] = useState(false); const styles = useStyles2(getStyles); return (
We have migrated API keys into Grafana service accounts. All API keys are safe and continue working as they used to, you can find them inside the respective service account.
setIsModalOpen(false)} /> View service accounts page
); }; export const getStyles = (theme: GrafanaTheme2) => ({ text: css` margin-bottom: ${theme.spacing(2)}; `, actionRow: css` display: flex; align-items: center; `, actionButton: css` margin-right: ${theme.spacing(2)}; `, });