import { css } from '@emotion/css'; import React from 'react'; import { GrafanaTheme2, VariableOrigin, DataLinkBuiltInVars } from '@grafana/data'; import { Button, useStyles2 } from '@grafana/ui'; import { DataLinkConfig } from '../types'; import { DataLink } from './DataLink'; const getStyles = (theme: GrafanaTheme2) => { return { infoText: css` padding-bottom: ${theme.spacing(2)}; color: ${theme.colors.text.secondary}; `, dataLink: css` margin-bottom: ${theme.spacing(1)}; `, }; }; type Props = { value?: DataLinkConfig[]; onChange: (value: DataLinkConfig[]) => void; }; export const DataLinks = (props: Props) => { const { value, onChange } = props; const styles = useStyles2(getStyles); return ( <>