import React, { forwardRef } from 'react'; import { Surface, cn, surfaceClasses, useEffectiveSurface, } from '../common'; /* ───────────────────────────────────────────────────────────────────────── PixelEmptyState — empty / no-results placeholder. ───────────────────────────────────────────────────────────────────────── */ /** Public prop bag for {@link PixelEmptyState}. */ export interface PixelEmptyStateProps { /** Short title (e.g. `"No results"`). */ title: string; /** Supporting description below the title. */ description: string; /** Optional CTA node (button, link). */ action?: React.ReactNode; /** Optional decorative icon. */ icon?: React.ReactNode; /** Surface override; falls back to nearest provider. */ surface?: Surface; } export const PixelEmptyState = forwardRef(function PixelEmptyState( { title, description, action, icon, surface: surfaceProp }, ref, ) { const surface = useEffectiveSurface(surfaceProp); const s = surfaceClasses(surface); return (
{icon &&
{icon}
}

{title}

{description}

{action &&
{action}
}
); }); PixelEmptyState.displayName = 'PixelEmptyState';