24 lines
774 B
JavaScript
24 lines
774 B
JavaScript
import { jsx as m } from "react/jsx-runtime";
|
|
import r from "react";
|
|
import { D as a } from "./chunks/constants-Bq1Au9ih.js";
|
|
import { c as n } from "./chunks/createReactRemoteElementComponent-B0hibuD7.js";
|
|
function l(e) {
|
|
return !e || r.isValidElement(e) ? e : typeof e == "function" || typeof e == "object" && (e != null && e.$$typeof) ? r.createElement(e) : e;
|
|
}
|
|
const f = n({
|
|
componentName: "SegmentedSelector",
|
|
tagName: "uikit-segmented-selector",
|
|
defaultRemoteUrl: a.SegmentedSelector,
|
|
normalizeProps: ({ items: e, ...o }) => ({
|
|
...o,
|
|
items: Array.isArray(e) ? e.map((t) => ({ ...t, icon: l(t == null ? void 0 : t.icon) })) : []
|
|
})
|
|
});
|
|
function c(e) {
|
|
return /* @__PURE__ */ m(f, { ...e });
|
|
}
|
|
export {
|
|
c as SegmentedSelector,
|
|
c as default
|
|
};
|