import { type ReactNode } from "react"; import { cn } from "../lib/utils"; interface EntityRowProps { leading?: ReactNode; identifier?: string; title: string; subtitle?: string; trailing?: ReactNode; selected?: boolean; onClick?: () => void; className?: string; } export function EntityRow({ leading, identifier, title, subtitle, trailing, selected, onClick, className, }: EntityRowProps) { return (
{leading &&
{leading}
}
{identifier && ( {identifier} )} {title}
{subtitle && (

{subtitle}

)}
{trailing &&
{trailing}
}
); }