@pagopa/mui-italia
Version:
[Material-UI](https://mui.com/core/) theme inspired by [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).
16 lines (15 loc) • 923 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const icons_material_1 = require("@mui/icons-material");
const material_1 = require("@mui/material");
const DefaultEmptyState = ({ noResultsText, filteredOptions }) => {
if (filteredOptions.length > 0) {
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
}
return ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ spacing: 1, alignItems: "center", textAlign: "center", sx: {
backgroundColor: '#F4F5F8',
py: 3,
} }, { children: [(0, jsx_runtime_1.jsx)(icons_material_1.ErrorOutlineOutlined, { sx: { color: '#D9D9D9' } }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ fontWeight: 600, fontSize: "1.125rem", color: "textSecondary" }, { children: noResultsText }))] })));
};
exports.default = DefaultEmptyState;