mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
19 lines
500 B
TypeScript
19 lines
500 B
TypeScript
import React from 'react';
|
|
import { components } from 'react-select';
|
|
import { OptionProps } from 'react-select/lib/components/Option';
|
|
|
|
export interface Props {
|
|
children: Element;
|
|
}
|
|
|
|
export const PickerOption = (props: OptionProps<any>) => {
|
|
const { children, className } = props;
|
|
return (
|
|
<components.Option {...props}>
|
|
<div className={`description-picker-option__button btn btn-link ${className}`}>{children}</div>
|
|
</components.Option>
|
|
);
|
|
};
|
|
|
|
export default PickerOption;
|