UNPKG

@adaptabletools/adaptable

Version:

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

11 lines (10 loc) 610 B
import { jsx as _jsx } from "react/jsx-runtime"; import join from '../../components/utils/join'; import * as GeneralConstants from '../../Utilities/Constants/GeneralConstants'; import { ThemeSelector } from './ThemeSelector'; export const ThemeViewPanelControl = (props) => { const elementType = props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel'; return (_jsx("div", { className: join(props.accessLevel == GeneralConstants.ACCESS_LEVEL_READ_ONLY ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Theme__wrap`), children: _jsx(ThemeSelector, {}) })); };