@cimpress/react-components
Version:
React components to support the MCP styleguide
24 lines • 824 B
JavaScript
import React from 'react';
import { Robot } from '../Robot';
const defaultNoDataText = 'There are no data to display.';
const TableNoData = ({ children, loading, entireHeaderHeight = 0, }) => {
if (loading) {
return null;
}
return (React.createElement("div", { style: {
position: 'absolute',
left: 0,
top: entireHeaderHeight,
bottom: 0,
width: '100%',
backgroundColor: 'white',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
} },
React.createElement(Robot, { status: "warning" }),
React.createElement("h4", null, children || defaultNoDataText)));
};
export default TableNoData;
//# sourceMappingURL=TableNoData.js.map