import * as React from "react" import { cn } from "../ui/utils" interface ListItemProps extends React.ComponentProps<"div"> { leading?: React.ReactNode title: string subtitle?: React.ReactNode trailing?: React.ReactNode status?: { label: string color: string } } function ListItem({ leading, title, subtitle, trailing, status, className, ...props }: ListItemProps) { return (
{leading}

{title}

{status && (
{status.label}
)} {subtitle && !status && (

{subtitle}

)}
{trailing &&
{trailing}
}
) } export { ListItem } export type { ListItemProps }