import React, { type ComponentPropsWithRef, type FC, type ReactNode } from 'react'; import classNames from 'clsx'; import type { IntentType } from '../const'; export interface NonIdealStateProps extends Omit, 'title'> { title?: ReactNode; icon?: ReactNode; description?: ReactNode; action?: ReactNode; intent?: IntentType; } export const NonIdealState: FC = ({ icon, title, description, action, children, className, intent, ...props }) => { return (
svg]:w-[4rem]', intent && `text-${intent}`)}>{icon}
{title &&

{title}

} {description &&
{description}
} {action} {children}
); };