import { ExternalLink } from 'lucide-react' import Link from 'next/link' import { PropsWithChildren } from 'react' import { Button } from 'ui' import { ButtonTooltip } from '@/components/ui/ButtonTooltip' interface ProductEmptyStateProps { title?: string size?: 'medium' | 'large' ctaButtonLabel?: string infoButtonLabel?: string infoButtonUrl?: string onClickCta?: () => void loading?: boolean disabled?: boolean disabledMessage?: string ctaUrl?: string } const ProductEmptyState = ({ title = '', size = 'medium', children, ctaButtonLabel = '', infoButtonLabel = '', infoButtonUrl = '', onClickCta = () => {}, loading = false, disabled = false, disabledMessage = '', ctaUrl, }: PropsWithChildren) => { const hasAction = (ctaButtonLabel && onClickCta) || (infoButtonUrl && infoButtonLabel) return (
{/* A graphic can probably be placed here as a sibling to the div below*/}
{title}
{children}
{hasAction && (
{ctaButtonLabel && !!ctaUrl ? ( ) : ctaButtonLabel && !!onClickCta ? ( 0 ? disabledMessage : undefined, }, }} > {ctaButtonLabel} ) : null} {infoButtonUrl && infoButtonLabel ? ( ) : null}
)}
) } export default ProductEmptyState