import { ChangeEvent, FormEvent } from 'react'; import { selectors } from '@grafana/e2e-selectors'; import { Stack } from '@grafana/ui'; import { VariableCheckboxField } from 'app/features/dashboard-scene/settings/variables/components/VariableCheckboxField'; import { VariableTextField } from 'app/features/dashboard-scene/settings/variables/components/VariableTextField'; interface SelectionOptionsFormProps { multi: boolean; includeAll: boolean; allowCustomValue?: boolean; allValue?: string | null; onMultiChange: (event: ChangeEvent) => void; onAllowCustomValueChange?: (event: ChangeEvent) => void; onIncludeAllChange: (event: ChangeEvent) => void; onAllValueChange: (event: FormEvent) => void; } export function SelectionOptionsForm({ multi, allowCustomValue, includeAll, allValue, onMultiChange, onAllowCustomValueChange, onIncludeAllChange, onAllValueChange, }: SelectionOptionsFormProps) { return ( {onAllowCustomValueChange && ( // backwards compat with old arch, remove on cleanup )} {includeAll && ( )} ); }