import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE__chakra_ui_react__ from "@chakra-ui/react";
import * as __WEBPACK_EXTERNAL_MODULE__NavLink_mjs__ from "./NavLink.mjs";
function Nav(props) {
    const items = props.items || [];
    return items.length > 0 ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.VStack, {
        as: "nav",
        mt: 6,
        spacing: 1,
        alignItems: "left",
        role: "navigation"
    }, props.heading && /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Text, {
        color: "white",
        fontSize: "xs",
        pl: 3.5,
        "data-testid": `nav-heading-${props.heading}`
    }, !props.isCollapsed && props.heading), items.map(({ status, ...item })=>/*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__NavLink_mjs__["default"], {
            key: item.isPrevious ? 'previous' : item.to,
            status: status ?? props.status,
            ...item,
            isCollapsed: props.isCollapsed
        }))) : null;
}
/* ESM default export */ const Nav_rslib_entry_ = Nav;
export { Nav_rslib_entry_ as default };
