/* Copyright 2024 New Vector Ltd. SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. */ import React, { type ComponentType, type JSX, type PropsWithChildren, } from "react"; import styles from "./VisualListItem.module.css"; import classNames from "classnames"; interface VisualListItemProps extends React.HTMLProps { /** * The CSS class name. */ className?: string; /** * The icon component. */ Icon: ComponentType>; success?: boolean; destructive?: boolean; } /** * A list component. */ export function VisualListItem({ className, children, Icon, success = false, destructive = false, ...props }: PropsWithChildren): JSX.Element { return (
  • {children}
  • ); }