import React, { forwardRef } from 'react'; export interface EmptyStateProps extends Omit< React.HTMLAttributes, 'title' > { icon?: React.ReactNode; title?: React.ReactNode; description?: React.ReactNode; action?: React.ReactNode; } export const EmptyState = forwardRef( ( { icon, title, description, action, className = '', children, ...rest }, ref ) => { const classes = ['empty-state', className].filter(Boolean).join(' '); return (
{icon !== undefined && ( )} {title !== undefined &&

{title}

} {description !== undefined && (

{description}

)} {children} {action !== undefined && (
{action}
)}
); } ); EmptyState.displayName = 'EmptyState';