@kit-data-manager/react-search-component
Version:
All-in-one component for rendering an elastic search UI for searching anything. Built-in support for visualizing related items in a graph and resolving unique identifiers.
9 lines • 717 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { CircleX } from "lucide-react";
export function ErrorView(props) {
if (props.error) {
return (_jsxs("div", { className: "rfs:flex rfs:flex-col rfs:items-center rfs:p-10", children: [_jsx(CircleX, { className: "rfs:mb-4 rfs:size-12" }), _jsx("div", { className: "rfs:font-extrabold", children: "An error has occurred" }), _jsx("div", { className: "rfs:mb-2 rfs:text-sm", children: "Please try to reload the page or notify an administrator if the issue persists" }), _jsx("pre", { className: "rfs:bg-secondary rfs:p-1 rfs:text-sm", children: props.error })] }));
}
return props.children;
}
//# sourceMappingURL=ErrorView.js.map