import React from "react" import { cn } from "../../../utils/cn" import { noDataIconClasses } from "./no-data-styles" interface NoDataMessageProps extends Omit, "title"> { /** Leading glyph, sized to 16px (mobile) / 24px (md+). Optional. */ icon?: React.ReactNode /** Primary line (body size). */ title?: React.ReactNode /** Secondary line (caption size). */ description?: React.ReactNode } /** * A transparent, centered stack of an icon, a title and a description, in muted * gray. Any piece is optional, so it also covers "icon + title", "title only", * and similar reduced forms. */ const NoDataMessage = React.forwardRef( function NoDataMessage({ icon, title, description, className, ...props }, ref) { return (
{icon && {icon}} {(title || description) && (
{title &&

{title}

} {description &&

{description}

}
)}
) }, ) export { NoDataMessage, type NoDataMessageProps }