import React, { PropsWithChildren, ReactElement } from 'react'; import { InlineFormLabel, Select, useStyles } from '@grafana/ui'; import { GrafanaTheme, SelectableValue } from '@grafana/data'; import { css } from '@emotion/css'; interface VariableSelectFieldProps { name: string; value: SelectableValue; options: Array>; onChange: (option: SelectableValue) => void; tooltip?: string; ariaLabel?: string; width?: number; labelWidth?: number; } export function VariableSelectField({ name, value, options, tooltip, onChange, ariaLabel, width, labelWidth, }: PropsWithChildren>): ReactElement { const styles = useStyles(getStyles); return ( <> {name}