UNPKG

stone-kit

Version:
74 lines (73 loc) 2.07 kB
import { jsx as t, jsxs as i } from "react/jsx-runtime"; import { useState as l } from "react"; import { LotCardSkeleton as c } from "../../components/LotCardSkeleton/ui/LotCardSkeleton.js"; import { C as p, L as r } from "../../FilterWithSave-D4iIFzmS.js"; import { ProjectCardSkeleton as d } from "../../components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js"; import { testLot as e, testLotEmpty as m } from "./const.js"; const f = "_root_1w9fc_1", h = "_lotWrapper_1w9fc_8", C = "_optionsWrapper_1w9fc_14", _ = "_isFetching_1w9fc_20", s = { root: f, lotWrapper: h, optionsWrapper: C, isFetching: _ }, u = () => { const [o, n] = l(!1), a = JSON.parse(JSON.stringify(e)); return a.status = 2, /* @__PURE__ */ t("div", { className: s.root, children: /* @__PURE__ */ i("div", { className: s.lotWrapper, children: [ /* @__PURE__ */ t(p, { lot: a, isVertical: !0 }), !o && /* @__PURE__ */ t( r, { lot: e, handleBtnForm: () => { } } ), !o && /* @__PURE__ */ t( r, { lot: e, favoriteClickHandler: () => { }, handleBtnForm: () => { } } ), !o && /* @__PURE__ */ t( r, { favoriteClickHandler: () => { }, lot: m, handleBtnForm: () => { } } ), /* @__PURE__ */ i("div", { style: { display: "flex", flexWrap: "wrap" }, children: [ !o && /* @__PURE__ */ t( r, { favoriteClickHandler: () => { }, lot: e, rowConditions: !1, handleBtnForm: () => { } } ), /* @__PURE__ */ t(c, { isProjectCard: !0 }) ] }), /* @__PURE__ */ t(d, {}), /* @__PURE__ */ t("div", { className: s.optionsWrapper, children: /* @__PURE__ */ i("label", { className: s.isFetching, children: [ "isFetching", /* @__PURE__ */ t( "input", { type: "checkbox", onClick: () => n(!o) } ) ] }) }) ] }) }); }; export { u as LotsPage };