UNPKG

stackpress

Version:

Incept is a content management framework.

8 lines (7 loc) 579 B
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; export default function LayoutMenu(props) { const { path = '', menu = [] } = props; return (_jsx(_Fragment, { children: menu.map((item, index) => (_jsxs("a", { className: `theme-bc-bd0 ${path.startsWith(item.match) ? 'theme-tx1' : 'theme-info'} flex items-center no-underline px-px-10 px-py-14 border-b`, href: item.path, children: [item.icon && (_jsx("i", { className: `theme-tx1 px-mr-10 fas fa-fw fa-${item.icon}` })), item.name] }, index))) })); }