Files
grafana/public/app/features/datasources/components/DataSourceReadOnlyMessage.tsx
Hugo Häggmark 2b8c74de2e i18n: removes useTranslate hook (#106556)
* i18n: removes useTranslate hook

* chore: fix duplicate imports

* chore: fix import sorting and hook dependencies
2025-06-12 11:03:52 +02:00

19 lines
630 B
TypeScript

import { selectors as e2eSelectors } from '@grafana/e2e-selectors';
import { t } from '@grafana/i18n';
import { Alert } from '@grafana/ui';
export const readOnlyMessage =
'This data source was added by config and cannot be modified using the UI. Please contact your server admin to update this data source.';
export function DataSourceReadOnlyMessage() {
return (
<Alert
data-testid={e2eSelectors.pages.DataSource.readOnly}
severity="info"
title={t('datasources.data-source-read-only-message.title-provisioned-data-source', 'Provisioned data source')}
>
{readOnlyMessage}
</Alert>
);
}