D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
grafana
/
public
/
app
/
core
/
components
/
Layers
/
Filename :
AddLayerButton.tsx
back
Copy
import React from 'react'; import { SelectableValue } from '@grafana/data'; import { ValuePicker } from '@grafana/ui'; export 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} /> ); };