import { DataLinksInlineEditor, Input, RadioButtonGroup, Select, Switch, TextArea } from '@grafana/ui'; import { getPanelLinksVariableSuggestions } from 'app/features/panel/panellinks/link_srv'; import React from 'react'; import { RepeatRowSelect } from '../RepeatRowSelect/RepeatRowSelect'; import { OptionsPaneItemDescriptor } from './OptionsPaneItemDescriptor'; import { OptionsPaneCategoryDescriptor } from './OptionsPaneCategoryDescriptor'; import { OptionPaneRenderProps } from './types'; import { isPanelModelLibraryPanel } from '../../../library-panels/guard'; import { LibraryPanelInformation } from 'app/features/library-panels/components/LibraryPanelInfo/LibraryPanelInfo'; export function getPanelFrameCategory(props: OptionPaneRenderProps): OptionsPaneCategoryDescriptor { const { panel, onPanelConfigChange, dashboard } = props; const descriptor = new OptionsPaneCategoryDescriptor({ title: 'Panel options', id: 'Panel options', isOpenDefault: true, }); if (isPanelModelLibraryPanel(panel)) { descriptor.addItem( new OptionsPaneItemDescriptor({ title: 'Library panel information', render: function renderLibraryPanelInformation() { return ; }, }) ); } 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 (