Spaces:
Running

mcp-webcam / src /components /ui /empty-state.tsx
evalstate's picture
evalstate HF Staff
Deploy mcp-webcam v0.3.0 (stateless MCP 2026-07-28 + SEP-3415 Events + Studio UI)
6f5f15e verified
Raw History Blame Contribute Delete
779 Bytes
import * as React from 'react';
import { cn } from '@/lib/utils';
export function EmptyState({
icon,
title,
description,
action,
className,
}: {
icon?: React.ReactNode;
title: string;
description?: string;
action?: React.ReactNode;
className?: string;
}) {
return (
<div
className={cn(
'flex flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-line px-4 py-7 text-center',
className,
)}
>
{icon && <div className="text-muted-2">{icon}</div>}
<div className="text-xs font-medium text-fg">{title}</div>
{description && <p className="max-w-xs text-[11px] leading-relaxed text-muted">{description}</p>}
{action && <div className="mt-1">{action}</div>}
</div>
);
}