UNPKG

@adaptabletools/adaptable

Version:

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

16 lines (15 loc) 1.04 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { useAdaptable } from '../AdaptableContext'; import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants'; import { useChartingElements } from './useChartingElements'; import { Box, Flex } from '../../components/Flex'; export const ChartingStatusBarPopover = (props) => { const adaptable = useAdaptable(); const accessLevel = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule(ModuleConstants.ChartingModuleId); const { chartSelector, containerSelector, chartButton, deleteButton, editButton } = useChartingElements({ elementType: 'Statusbar', accessLevel: accessLevel, size: 'small', }); return (_jsxs(Flex, { className: "twa:w-full", alignItems: "center", children: [_jsx(Box, { children: chartSelector }), containerSelector && _jsx(Box, { className: "twa:ml-1", children: containerSelector }), _jsxs(Box, { className: "twa:ml-1", children: [chartButton, deleteButton, editButton] })] })); };