UNPKG

geoiq-frontend-ui-kit

Version:

This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.

64 lines (63 loc) 1.92 kB
import e, { useState as s } from "react"; import { MembersSection as E } from "./index.es119.js"; import { ServingStatesSection as u } from "./index.es120.js"; import { TypeSection as N } from "./index.es121.js"; import { SharedMarketsSection as b } from "./index.es122.js"; import { PropertiesAddedSection as A } from "./index.es123.js"; import { NotesSection as C } from "./index.es124.js"; import { DialogNote as v } from "./index.es125.js"; const y = (o) => { const [a, t] = s(!1), [n, r] = s(""), m = () => { t(!0); }, i = () => { o.onNoteSubmit?.(n), r(""), t(!1); }, l = (c) => r(c); return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(D, { ...o, onAddNote: m }), /* @__PURE__ */ e.createElement( v, { open: a, noteValue: n, onNoteChange: l, onClose: () => t(!1), onSave: i } )); }, D = ({ members: o, servingStates: a, types: t, sharedMarkets: n, propertiesAdded: r, notesLoading: m, notes: i, onAddNote: l, hideNotes: c = !1, hideProperties: p = !1, property_count: S, onPropertyRedirect: d, onPropertiesReachBottom: f, onPropertiesSearchChange: g, loading: h }) => /* @__PURE__ */ e.createElement("div", { className: "p-3 bg-light-1 min-w-[420px]" }, /* @__PURE__ */ e.createElement(E, { members: o?.list ?? [] }), /* @__PURE__ */ e.createElement(u, { servingStates: a }), /* @__PURE__ */ e.createElement(N, { types: t }), /* @__PURE__ */ e.createElement(b, { sharedMarkets: n }), !p && /* @__PURE__ */ e.createElement( A, { properties: r, property_count: S, onRedirect: d, onReachBottom: f, onSearchChange: g, loading: h } ), !c && /* @__PURE__ */ e.createElement( C, { notes: i?.list ?? [], onAddNote: l, notesLoading: m } )); export { D as AgentSnippetComponent, y as AgentSnippetView }; //# sourceMappingURL=index.es68.js.map