import React, { ChangeEvent, PropsWithChildren, ReactElement } from 'react'; import { InlineField, InlineSwitch } from '@grafana/ui'; import { useUniqueId } from 'app/plugins/datasource/influxdb/components/useUniqueId'; interface VariableSwitchFieldProps { value: boolean; name: string; onChange: (event: ChangeEvent) => void; tooltip?: string; ariaLabel?: string; } export function VariableSwitchField({ value, name, tooltip, onChange, ariaLabel, }: PropsWithChildren): ReactElement { const uniqueId = useUniqueId(); return ( ); }