/** * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ import styles from "./removable-item.module.scss"; import React, { DOMAttributes } from "react"; import { cssNames } from "../../utils"; import { Icon } from "../icon"; interface Props extends DOMAttributes{ icon?: string; onRemove: () => void; className?: string; } export function RemovableItem({ icon, onRemove, children, className, ...rest }: Props) { return (
{icon && ( )} {children}
); }