UNPKG

@anoki/fse-ui

Version:

FSE UI components library

26 lines (25 loc) 886 B
import { j as r } from "./index.es237.js"; const x = ({ links: t, asLink: a = "a", onClick: o }) => { const m = a; return /* @__PURE__ */ r.jsx("ul", { className: "list-style-none", role: "list", children: t == null ? void 0 : t.map((e) => { const s = e == null ? void 0 : e.icon; return /* @__PURE__ */ r.jsx("li", { className: "py-x20 py-x8 border-bottom", children: /* @__PURE__ */ r.jsxs( m, { href: e.href, className: "w-full underline text-decoration-none text-primary fs-5 md-fs-4 fw-regular base-row align-items-center gap-x8", onClick: () => { o == null || o(); }, children: [ s ? /* @__PURE__ */ r.jsx(s, { color: "primary", width: 32, height: 32 }) : null, e.value ] } ) }, e.value); }) }); }; export { x as NavList }; //# sourceMappingURL=index.es108.js.map