UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

19 lines (18 loc) 939 B
import { jsx as _jsx } from "react/jsx-runtime"; import * as React from 'react'; import { DashboardToolbar as DashboardToolbarUI } from '../../../../components/Dashboard'; import { ACCESS_LEVEL_FULL } from '../../../../Utilities/Constants/GeneralConstants'; export class PanelDashboard extends React.Component { static defaultProps = { showConfigureActionButton: true, showCloseActionButton: true, headerText: 'Module', onClose: null, onConfigure: null, accessLevel: ACCESS_LEVEL_FULL, }; render() { const { headerText, showConfigureActionButton, showCloseActionButton, onConfigure, onClose, accessLevel, children, } = this.props; return (_jsx(DashboardToolbarUI, { title: headerText, onConfigure: onConfigure, showConfigure: showConfigureActionButton, showClose: showCloseActionButton, onClose: onClose, accessLevel: accessLevel, children: children })); } }