import clsx from 'clsx' import { ComponentType } from 'react' export type StatusDisplayProps = { /** * The icon to display. */ Icon?: ComponentType<{ className: string }> /** * Optional class names for the icon. */ iconClassName?: string /** * The label to display. */ label?: string /** * Optional class names for the label. */ labelClassName?: string /** * Optional class names for the container. */ className?: string } export const StatusDisplay = ({ Icon, iconClassName, label, labelClassName, className, }: StatusDisplayProps) => (
{Icon && } {!!label && (

{label}

)}
)