@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
12 lines (11 loc) • 764 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { cn } from '../../lib/utils';
import { Box, Flex } from '../Flex';
const baseClassName = 'ab-EmptyContent';
const EmptyContent = ({ children, className, style, ...flexProps }) => {
if (typeof children === 'string') {
children = _jsx("p", { children: children });
}
return (_jsx(Box, { className: `${baseClassName}__wrapper twa:flex-1 twa:relative twa:size-full`, children: _jsx(Flex, { alignItems: "center", justifyContent: "center", flexDirection: "column", ...flexProps, className: cn('twa:absolute twa:inset-0 twa:text-3 twa:text-center twa:p-4', 'twa:[&_p]:text-primary-foreground', baseClassName, className), style: style, children: children }) }));
};
export default EmptyContent;