import React from 'react';
import { DataLinksInlineEditor, Input, RadioButtonGroup, Select, Switch, TextArea } from '@grafana/ui';
import { getPanelLinksVariableSuggestions } from 'app/features/panel/panellinks/link_srv';
import { RepeatRowSelect } from '../RepeatRowSelect/RepeatRowSelect';
import { OptionsPaneCategoryDescriptor } from './OptionsPaneCategoryDescriptor';
import { OptionsPaneItemDescriptor } from './OptionsPaneItemDescriptor';
import { OptionPaneRenderProps } from './types';
export function getPanelFrameCategory(props: OptionPaneRenderProps): OptionsPaneCategoryDescriptor {
const { panel, onPanelConfigChange } = props;
const descriptor = new OptionsPaneCategoryDescriptor({
title: 'Panel options',
id: 'Panel options',
isOpenDefault: true,
});
return descriptor
.addItem(
new OptionsPaneItemDescriptor({
title: 'Title',
value: panel.title,
popularRank: 1,
render: function renderTitle() {
return (
onPanelConfigChange('title', e.currentTarget.value)}
/>
);
},
})
)
.addItem(
new OptionsPaneItemDescriptor({
title: 'Description',
description: panel.description,
value: panel.description,
render: function renderDescription() {
return (