import { css } from '@emotion/css'; import React, { useState } from 'react'; import { selectors } from '@grafana/e2e-selectors'; import { DataSourcePicker } from '@grafana/runtime'; import { Button, InlineField, InlineSwitch, Input } from '@grafana/ui'; import { ExemplarTraceIdDestination } from '../types'; type Props = { value: ExemplarTraceIdDestination; onChange: (value: ExemplarTraceIdDestination) => void; onDelete: () => void; }; export default function ExemplarSetting({ value, onChange, onDelete }: Props) { const [isInternalLink, setIsInternalLink] = useState(Boolean(value.datasourceUid)); return (
<> setIsInternalLink(ev.currentTarget.checked)} />
); }