import { Button, InlineField, InlineSwitch, Input } from '@grafana/ui'; import { DataSourcePicker } from 'app/core/components/Select/DataSourcePicker'; import { css } from 'emotion'; import React, { useState } from 'react'; 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 (