1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
535 B

import React from 'react';
import { ValuePicker } from '@grafana/ui';
import { SelectableValue } from '@grafana/data';
type AddLayerButtonProps = {
onChange: (sel: SelectableValue<string>) => void;
options: Array<SelectableValue<string>>;
label: string;
};
export const AddLayerButton = ({ onChange, options, label }: AddLayerButtonProps) => {
return (
<ValuePicker
icon="plus"
label={label}
variant="secondary"
options={options}
onChange={onChange}
isFullWidth={true}
/>
);
};