UNPKG

pagamio-frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

7 lines (6 loc) 686 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { HiOutlineInformationCircle } from 'react-icons/hi'; const EmptyMetricState = ({ message = 'No metric data available', icon }) => { return (_jsxs("div", { className: "flex flex-col items-center justify-center h-full gap-y-2 text-center pb-4", "aria-live": "polite", "aria-atomic": "true", children: [icon ?? _jsx(HiOutlineInformationCircle, { className: "w-[50px] h-[50px] text-gray-400", "aria-hidden": "true" }), _jsx("div", { className: "space-y-1", children: message && _jsx("p", { className: "text-xs text-gray-500 max-w-[160px] mx-auto", children: message }) })] })); }; export default EmptyMetricState;