import { css } from '@emotion/css'; import React, { PropsWithChildren, ReactElement, useId } from 'react'; import { GrafanaTheme2, SelectableValue } from '@grafana/data'; import { Field, Select, useStyles2 } from '@grafana/ui'; interface VariableSelectFieldProps { name: string; value: SelectableValue; options: Array>; onChange: (option: SelectableValue) => void; testId?: string; width?: number; description?: React.ReactNode; } export function VariableSelectField({ name, description, value, options, onChange, testId, width, }: PropsWithChildren>): ReactElement { const styles = useStyles2(getStyles); const uniqueId = useId(); const inputId = `variable-select-input-${name}-${uniqueId}`; return (