UNPKG

@octopusdeploy/design-system-components

Version:
21 lines (20 loc) 952 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LegacyListItemButton = LegacyListItemButton; const jsx_runtime_1 = require("react/jsx-runtime"); const css_1 = require("@emotion/css"); const material_1 = require("@mui/material"); /** * @deprecated Do not use this component. This exists specifically to support the process sidebar items in Portal. * The styling of the process sidebar is very tightly coupled to its markup which includes this component's implementation. */ function LegacyListItemButton({ className, children, onClick }) { return ((0, jsx_runtime_1.jsx)(material_1.ListItemButton, { disableRipple: true, disableTouchRipple: true, component: "a", className: (0, css_1.cx)(styles.listItem, className), disableGutters: true, onClick: onClick, children: children })); } const styles = { listItem: (0, css_1.css)({ "&.MuiListItem-root": { padding: 0, }, }), };