/** * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ import "./drawer-item.scss"; import React from "react"; import { cssNames } from "../../utils"; export interface DrawerItemProps extends React.HTMLAttributes { name: React.ReactNode; title?: string; labelsOnly?: boolean; hidden?: boolean; /** * @deprecated This prop is no longer used, you should stringify the booleans yourself. * * This was only meant to be an internal prop anyway. */ renderBooleans?: boolean; } export function DrawerItem({ name, title, labelsOnly, children, hidden = false, className, ...elemProps }: DrawerItemProps) { if (hidden) { return null; } return (
{name} {children}
); }