mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
26 lines
648 B
TypeScript
26 lines
648 B
TypeScript
|
|
import { css } from '@emotion/css';
|
|||
|
|
import React from 'react';
|
|||
|
|
|
|||
|
|
import { GrafanaTheme2 } from '@grafana/data/src';
|
|||
|
|
import { useStyles2 } from '@grafana/ui/src';
|
|||
|
|
|
|||
|
|
export const Description = () => {
|
|||
|
|
const styles = useStyles2(getStyles);
|
|||
|
|
|
|||
|
|
return (
|
|||
|
|
<div className={styles.container}>
|
|||
|
|
<p className={styles.description}>Currently, we don’t support template variables or frontend data sources</p>
|
|||
|
|
</div>
|
|||
|
|
);
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
const getStyles = (theme: GrafanaTheme2) => ({
|
|||
|
|
container: css`
|
|||
|
|
margin-bottom: ${theme.spacing(3)};
|
|||
|
|
`,
|
|||
|
|
description: css`
|
|||
|
|
color: ${theme.colors.text.secondary};
|
|||
|
|
margin-bottom: ${theme.spacing(1)};
|
|||
|
|
`,
|
|||
|
|
});
|