UNPKG

@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.

8 lines 1.06 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Dialog, DialogContent, DialogTrigger } from "../../components/ui/dialog"; import { Button } from "../../components/ui/button"; import { ObjectRender } from "../../components/result/ObjectRender"; export function PlaceholderResultView(props) { return (_jsxs("div", { className: "rfs:border rfs:p-4 rfs:mb-2 rfs:rounded-lg rfs:space-y-2", children: [_jsxs("div", { children: ["No result view has been specified. Please specify ", _jsx("code", { children: "resultView" }), " or ", _jsx("code", { children: "resultViewPerIndex" }), " on the", " ", _jsx("code", { children: "ReactSearchComponent" }), " component"] }), _jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { variant: "secondary", size: "sm", children: "Show raw result" }) }), _jsx(DialogContent, { className: "rfs:max-h-full rfs:max-w-[1000px] rfs:overflow-y-auto", children: _jsx(ObjectRender, { data: props.result }) })] })] })); } //# sourceMappingURL=PlaceholderResultView.js.map