import React, { PureComponent } from 'react'; import classNames from 'classnames'; import { PanelHeaderMenu } from './PanelHeaderMenu'; import { DashboardModel } from 'app/features/dashboard/dashboard_model'; import { PanelModel } from 'app/features/dashboard/panel_model'; export interface Props { panel: PanelModel; dashboard: DashboardModel; } export class PanelHeader extends PureComponent { render() { const isFullscreen = false; const isLoading = false; const panelHeaderClass = classNames({ 'panel-header': true, 'grid-drag-handle': !isFullscreen }); const { panel, dashboard } = this.props; return (
{isLoading && ( )}
{panel.title} 4m
); } }